Skip to content

Commit c2301d9

Browse files
sserrataclaude
andcommitted
fix(workflows): use frozen lockfile and ignore scripts for all installs
Standardizes yarn install flags across all CI workflows: - --frozen-lockfile: ensures lockfile is the authoritative source (equivalent to npm ci) - --prefer-offline: prefer cache to reduce network overhead - --ignore-scripts: skip postinstall lifecycle scripts for security (validated locally) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2eea7dc commit c2301d9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/build-perf.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
node-version: "22"
4747
cache: yarn
4848
- name: Installation
49-
run: yarn
49+
run: yarn --frozen-lockfile --prefer-offline --ignore-scripts
5050

5151
# Ensure build with a cold cache does not increase too much
5252
- name: Build (cold cache)

.github/workflows/canary-beta-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
env:
3636
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
3737
- name: Installation
38-
run: yarn && yarn build-packages
38+
run: yarn --frozen-lockfile --prefer-offline --ignore-scripts && yarn build-packages
3939
- name: Publish Canary release
4040
run: |
4141
yarn canaryBeta

.github/workflows/deploy-live.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
cache: "yarn"
2424

2525
- name: Install dependencies
26-
run: yarn --prefer-offline
26+
run: yarn --frozen-lockfile --prefer-offline --ignore-scripts
2727

2828
- name: Build packages
2929
run: yarn build-packages

.github/workflows/deploy-preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
cache: "yarn"
113113

114114
- name: Install dependencies
115-
run: yarn --prefer-offline --ignore-scripts
115+
run: yarn --frozen-lockfile --prefer-offline --ignore-scripts
116116

117117
- name: Build packages
118118
run: yarn build-packages
@@ -202,7 +202,7 @@ jobs:
202202
cache: "yarn"
203203

204204
- name: Install dependencies
205-
run: yarn --prefer-offline
205+
run: yarn --frozen-lockfile --prefer-offline --ignore-scripts
206206

207207
- name: Install Playwright
208208
run: npx playwright install --with-deps chromium

0 commit comments

Comments
 (0)