Skip to content

Commit 7b02669

Browse files
authored
[infra] Fix passing auth token to pnpm (#361)
1 parent 1810d22 commit 7b02669

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838

3939
- name: Setup Node.js
4040
uses: actions/setup-node@v4
41+
env:
42+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4143
with:
4244
node-version: '22'
4345
# https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-dependencies
@@ -57,8 +59,6 @@ jobs:
5759
- name: Publish packages (automatic on push)
5860
if: github.event_name == 'push'
5961
run: node scripts/publish.mjs --provenance
60-
env:
61-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6262

6363
- name: Publish packages (manual trigger)
6464
if: github.event_name == 'workflow_dispatch'
@@ -74,5 +74,3 @@ jobs:
7474
ARGS="$ARGS --provenance"
7575
fi
7676
node scripts/publish.mjs $ARGS
77-
env:
78-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)