Skip to content

Commit b0790d8

Browse files
committed
chore: protect NPM_TOKEN during yarn install
1 parent dc4bfb7 commit b0790d8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ jobs:
3939
${{ runner.os }}-yarn-
4040
4141
- name: Install Packages
42-
run: yarn install --frozen-lockfile --prefer-offline
42+
# NOTE: The --ignore-scripts flag is required to prevent leakage of NPM_TOKEN value
43+
# See https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#use-private-packages
44+
run: yarn install --frozen-lockfile --prefer-offline --ignore-scripts
4345

4446
- name: Build
4547
run: yarn prepack

0 commit comments

Comments
 (0)