Skip to content

Commit 748e89f

Browse files
committed
chore(release): refine github token usage, re-add NPM token usage
- but now npm token is set as `NODE_AUTH_TOKEN` for auth it seems
1 parent 7af280b commit 748e89f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ jobs:
1313
id-token: write # enables OIDC for npmjs.com "Trusted Publisher" and provenance
1414
contents: read
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v6
1717
with:
1818
ref: 'main'
1919
fetch-depth: 0
20-
# Repository admin required to evade PR+checks branch protection
21-
token: ${{ secrets.GH_TOKEN }}
22-
- uses: actions/setup-node@v4
20+
- uses: actions/setup-node@v6
2321
with:
2422
node-version: lts/*
2523
registry-url: 'https://registry.npmjs.org'
@@ -58,4 +56,8 @@ jobs:
5856
env:
5957
# No NPM token needed, all of the packages have been configured
6058
# on npmjs.com with this workflow file as an OIDC "Trusted Publisher"
59+
# However as of 20251208 we still need an NPM token as OIDC failing...
60+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
61+
# org admin Github Token required for the changelog/tag commit+push
62+
# to work via an exception to branch protection rules
6163
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)