Skip to content

Commit d56d1e6

Browse files
cobusgreylingCobus Greyling
andauthored
fix(ci): drop NODE_AUTH_TOKEN so npm trusted publishing can run (#563)
NPM_TOKEN still 404s. If the packages now have a GitHub Actions trusted publisher, NODE_AUTH_TOKEN would override OIDC and keep failing. Co-authored-by: Cobus Greyling <cobusgreyling@Cobuss-MacBook-Pro-2.local>
1 parent ffbf710 commit d56d1e6

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/release-loop-audit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ jobs:
5656
"
5757
npm publish --access public --provenance
5858
env:
59-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
59+
# OIDC trusted publishing — do not set NODE_AUTH_TOKEN (it overrides OIDC)
6060
NPM_CONFIG_PROVENANCE: "true"

.github/workflows/release-loop-init.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ jobs:
5353
# package.json keeps registry range (^1.x) for the published tarball
5454
npm publish --access public --provenance
5555
env:
56-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
56+
# OIDC trusted publishing — do not set NODE_AUTH_TOKEN (it overrides OIDC)
5757
NPM_CONFIG_PROVENANCE: "true"

.github/workflows/release-loop.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,5 @@ jobs:
5151
working-directory: tools/loop
5252
run: npm publish --access public --provenance
5353
env:
54-
# Trusted publisher OIDC 404'd (npm GAT). Fall back to repo NPM_TOKEN.
55-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
54+
# OIDC trusted publishing — do not set NODE_AUTH_TOKEN (it overrides OIDC)
5655
NPM_CONFIG_PROVENANCE: "true"

0 commit comments

Comments
 (0)