···2424 with:
2525 node-version-file: .nvmrc
26262727- - name: Verify yarn.lock
2727+ - name: Reset yarn.lock to base
2828+ run: git show "origin/${{ github.base_ref }}:yarn.lock" > yarn.lock
2929+3030+ - name: Yarn install
2831 uses: Wandalen/wretry.action@master
2932 with:
3030- command: |
3131- git show "origin/${{ github.base_ref }}:yarn.lock" > yarn.lock
3232- yarn
3333- git diff --quiet --exit-code || {
3434- echo '::error::`yarn.lock` does not match what Yarn would generate given the base `yarn.lock` and the head `package.json`.'
3535- echo '::error:: - If this is intentional, you can ignore this check.'
3636- echo '::error:: - If this is unintentional, apply the following diff:'
3737- git --no-pager diff
3838- exit 1
3939- }
3333+ # Fine to skip scripts since we don't run any code
3434+ command: yarn install --ignore-scripts
4035 attempt_limit: 3
4136 attempt_delay: 2000
3737+3838+ - name: Verify yarn.lock
3939+ run: |
4040+ git diff --quiet --exit-code || {
4141+ echo '::error::`yarn.lock` does not match what Yarn would generate given the base `yarn.lock` and the head `package.json`.'
4242+ echo '::error:: - If this is intentional, you can ignore this check.'
4343+ echo '::error:: - If this is unintentional, apply the following diff:'
4444+ git --no-pager diff
4545+ exit 1
4646+ }