Skip to content

Update yarn.yml

Update yarn.yml #3

Workflow file for this run

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"