Skip to content

Commit 9eaf701

Browse files
committed
fix: revert to token based as trusted publish only works for node 24, npm 11
1 parent bd12ca7 commit 9eaf701

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
runs-on: ubuntu-latest
8989
environment: production
9090
permissions:
91-
contents: read
91+
contents: write
9292
id-token: write
9393

9494
steps:
@@ -111,6 +111,7 @@ jobs:
111111
run: npm publish --access public
112112
env:
113113
NPM_CONFIG_PROVENANCE: true
114+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
114115

115116
- name: Create GitHub Release
116117
run: gh release create "v${{ needs.publish-dry-run.outputs.version }}" --generate-notes

0 commit comments

Comments
 (0)