Skip to content

Commit 5991c12

Browse files
authored
Merge pull request #21 from phantom/kuba/fix-publishing
fix: publishing with trusted publishing
2 parents 4abcad1 + b735088 commit 5991c12

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
env:
2121
# Force npm to emit provenance (SLSA) when publishing via OIDC.
2222
NPM_CONFIG_PROVENANCE: true
23+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN_PHANTOM_SECURITY_BOT }}
2324

2425
steps:
2526
- name: Checkout Repo
@@ -33,7 +34,7 @@ jobs:
3334
with:
3435
node-version: 20.x
3536
registry-url: "https://registry.npmjs.org"
36-
token: ""
37+
token: ${{ secrets.NPM_PUBLISH_TOKEN_PHANTOM_SECURITY_BOT }}
3738

3839
- name: Ensure npm 11.5.1+ for trusted publishing
3940
run: npm install -g npm@^11.5.1
@@ -48,7 +49,4 @@ jobs:
4849
# This expects you to have a script called release which does a build for your packages and calls changeset publish
4950
publish: yarn release
5051
env:
51-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52-
# we use trusted publishing and setup-node will set these incorrectly. Unset if we ever use RO_TOKEN
53-
NODE_AUTH_TOKEN: ""
54-
NPM_TOKEN: ""
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)