Skip to content

Commit 1b419da

Browse files
prc5claude
andcommitted
fix: πŸ› publish to npm via OIDC trusted publishing
npm revoked 2FA-bypass automation tokens, which failed every publish of 8.2.1 with a masked 404. The release job now relies on the trusted publisher configured on npmjs.com. The OIDC path in @semantic-release/npm only engages on the exact https://registry.npmjs.org/ host, so every publishConfig moves off the .com alias, and the Publish step drops the deleted NPM_TOKEN secret in favor of the id-token permission. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent ca3916d commit 1b419da

13 files changed

Lines changed: 15 additions & 13 deletions

File tree

β€Ž.github/workflows/workflow.ymlβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,13 @@ jobs:
129129
- name: Get latest tag before release
130130
id: pre_release_tag
131131
run: echo "tag=$(git describe --tags --abbrev=0 || echo 'none')" >> $GITHUB_OUTPUT
132+
# npm auth comes from trusted publishing (OIDC): the id-token permission above lets
133+
# semantic-release exchange the Actions identity for a publish token. No NPM_TOKEN.
134+
# Requires the registry to be https://registry.npmjs.org/ (the .org host, exactly).
132135
- name: Publish
133136
run: pnpm release
134137
env:
135138
GITHUB_TOKEN: ${{ github.token }}
136-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
137139
- name: Get latest tag after release
138140
id: post_release_tag
139141
run: |

β€Žpackages/adapter-axios/package.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"publishConfig": {
2323
"access": "public",
24-
"registry": "https://registry.npmjs.com/"
24+
"registry": "https://registry.npmjs.org/"
2525
},
2626
"repository": {
2727
"type": "git",

β€Žpackages/adapter-firebase-admin/package.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"publishConfig": {
2525
"access": "public",
26-
"registry": "https://registry.npmjs.com/"
26+
"registry": "https://registry.npmjs.org/"
2727
},
2828
"repository": {
2929
"type": "git",

β€Žpackages/adapter-firebase/package.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"publishConfig": {
2525
"access": "public",
26-
"registry": "https://registry.npmjs.com/"
26+
"registry": "https://registry.npmjs.org/"
2727
},
2828
"repository": {
2929
"type": "git",

β€Žpackages/adapter-graphql/package.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"publishConfig": {
3535
"access": "public",
36-
"registry": "https://registry.npmjs.com/"
36+
"registry": "https://registry.npmjs.org/"
3737
},
3838
"repository": {
3939
"type": "git",

β€Žpackages/cli/package.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"publishConfig": {
2828
"access": "public",
29-
"registry": "https://registry.npmjs.com/"
29+
"registry": "https://registry.npmjs.org/"
3030
},
3131
"repository": {
3232
"type": "git",

β€Žpackages/core/package.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"publishConfig": {
2323
"access": "public",
24-
"registry": "https://registry.npmjs.com/"
24+
"registry": "https://registry.npmjs.org/"
2525
},
2626
"repository": {
2727
"type": "git",

β€Žpackages/hyper-flow/package.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
},
125125
"publishConfig": {
126126
"access": "public",
127-
"registry": "https://registry.npmjs.com/"
127+
"registry": "https://registry.npmjs.org/"
128128
},
129129
"repository": {
130130
"type": "git",

β€Žpackages/plugin-devtools/package.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
},
4444
"publishConfig": {
4545
"access": "public",
46-
"registry": "https://registry.npmjs.com/"
46+
"registry": "https://registry.npmjs.org/"
4747
},
4848
"repository": {
4949
"type": "git",

β€Žpackages/plugin-eslint/package.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
},
4848
"publishConfig": {
4949
"access": "public",
50-
"registry": "https://registry.npmjs.com/"
50+
"registry": "https://registry.npmjs.org/"
5151
},
5252
"repository": {
5353
"type": "git",

0 commit comments

Comments
Β (0)