Skip to content

Commit 786f426

Browse files
authored
fix(ci): wire NPM_TOKEN into publish steps — OIDC trusted publishing was never configured npm-side (#73)
1 parent ee6f637 commit 786f426

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/force-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,7 @@ jobs:
3232
run: yarn run publish
3333
env:
3434
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
# OIDC trusted publishing was never configured on npmjs.com (this
36+
# workflow has failed on every dispatch since Feb 2026). Token fallback:
37+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3538
NPM_CONFIG_PROVENANCE: true

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,8 @@ jobs:
5151
run: yarn run publish
5252
env:
5353
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
# OIDC trusted publishing was never configured on npmjs.com, so every
55+
# tokenless publish fails E404-on-PUT (provenance signs, PUT rejects).
56+
# NODE_AUTH_TOKEN feeds the .npmrc written by setup-node's registry-url.
57+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5458
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)