about summary refs log tree commit diff
path: root/.github
diff options
context:
space:
mode:
authorDan Abramov <dan.abramov@gmail.com>2024-12-19 05:50:37 +0000
committerDan Abramov <dan.abramov@gmail.com>2024-12-19 05:50:37 +0000
commita3031de19ba41717c8e83b818e294d44577fb434 (patch)
tree03ee8a5a516bfd0d12cc5f99cf3fed42908d53dc /.github
parent59739a6088e8ff03ac8210c343b42d16a4a13d67 (diff)
downloadvoidsky-a3031de19ba41717c8e83b818e294d44577fb434.tar.zst
Tweak GH action
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/verify-yarn-lock.yml27
1 files changed, 16 insertions, 11 deletions
diff --git a/.github/workflows/verify-yarn-lock.yml b/.github/workflows/verify-yarn-lock.yml
index aa4568f5c..5525bf664 100644
--- a/.github/workflows/verify-yarn-lock.yml
+++ b/.github/workflows/verify-yarn-lock.yml
@@ -24,18 +24,23 @@ jobs:
         with:
           node-version-file: .nvmrc
 
-      - name: Verify yarn.lock
+      - name: Reset yarn.lock to base
+        run: git show "origin/${{ github.base_ref }}:yarn.lock" > yarn.lock
+
+      - name: Yarn install
         uses: Wandalen/wretry.action@master
         with:
-          command: |
-            git show "origin/${{ github.base_ref }}:yarn.lock" > yarn.lock
-            yarn
-            git diff --quiet --exit-code || {
-              echo '::error::`yarn.lock` does not match what Yarn would generate given the base `yarn.lock` and the head `package.json`.'
-              echo '::error:: - If this is intentional, you can ignore this check.'
-              echo '::error:: - If this is unintentional, apply the following diff:'
-              git --no-pager diff
-              exit 1
-            }
+          # Fine to skip scripts since we don't run any code
+          command: yarn install --ignore-scripts
           attempt_limit: 3
           attempt_delay: 2000
+
+      - name: Verify yarn.lock
+        run: |
+          git diff --quiet --exit-code || {
+            echo '::error::`yarn.lock` does not match what Yarn would generate given the base `yarn.lock` and the head `package.json`.'
+            echo '::error:: - If this is intentional, you can ignore this check.'
+            echo '::error:: - If this is unintentional, apply the following diff:'
+            git --no-pager diff
+            exit 1
+          }