Update yarn.lock #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Install Dependencies Without yarn.lock | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
yarn-install: | |
runs-on: ubuntu-latest | |
steps: | |
# Step 1: Check out the repository | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
# Step 2: Remove the yarn.lock file (if it exists) | |
- name: Remove yarn.lock | |
run: | | |
if [ -f yarn.lock ]; then | |
rm yarn.lock | |
fi | |
# Step 3: Install dependencies without yarn.lock | |
- name: Install dependencies | |
run: yarn install --no-lockfile | |
- name: Update outdated dependencies | |
run: yarn upgrade | |
# Step 4: Restore the yarn.lock file (if it exists in the repo) | |
- name: Restore yarn.lock | |
run: git checkout yarn.lock || echo "No yarn.lock to restore" |