···24 with:
25 node-version-file: .nvmrc
2627- - name: Verify yarn.lock
00028 uses: Wandalen/wretry.action@master
29 with:
30- command: |
31- git show "origin/${{ github.base_ref }}:yarn.lock" > yarn.lock
32- yarn
33- git diff --quiet --exit-code || {
34- echo '::error::`yarn.lock` does not match what Yarn would generate given the base `yarn.lock` and the head `package.json`.'
35- echo '::error:: - If this is intentional, you can ignore this check.'
36- echo '::error:: - If this is unintentional, apply the following diff:'
37- git --no-pager diff
38- exit 1
39- }
40 attempt_limit: 3
41 attempt_delay: 2000
0000000000
···24 with:
25 node-version-file: .nvmrc
2627+ - name: Reset yarn.lock to base
28+ run: git show "origin/${{ github.base_ref }}:yarn.lock" > yarn.lock
29+30+ - name: Yarn install
31 uses: Wandalen/wretry.action@master
32 with:
33+ # Fine to skip scripts since we don't run any code
34+ command: yarn install --ignore-scripts
0000000035 attempt_limit: 3
36 attempt_delay: 2000
37+38+ - name: Verify yarn.lock
39+ run: |
40+ git diff --quiet --exit-code || {
41+ echo '::error::`yarn.lock` does not match what Yarn would generate given the base `yarn.lock` and the head `package.json`.'
42+ echo '::error:: - If this is intentional, you can ignore this check.'
43+ echo '::error:: - If this is unintentional, apply the following diff:'
44+ git --no-pager diff
45+ exit 1
46+ }