We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a8a1cf commit 8a866b0Copy full SHA for 8a866b0
1 file changed
.github/workflows/publish.yml
@@ -91,9 +91,13 @@ jobs:
91
steps:
92
- uses: actions/setup-node@v4
93
with:
94
- node-version: '20'
+ # Node 22 ships with npm >= 11, required for OIDC Trusted Publishing.
95
+ node-version: '22'
96
registry-url: 'https://registry.npmjs.org'
97
98
+ - name: Ensure latest npm (for OIDC support)
99
+ run: npm install -g npm@latest
100
+
101
- name: Download all artifacts
102
uses: actions/download-artifact@v4
103
@@ -107,8 +111,6 @@ jobs:
107
111
echo "=== Package contents ==="
108
112
ls -la publish-pkg/
109
113
110
- - name: Publish to npm
114
+ - name: Publish to npm (OIDC Trusted Publishing — no token needed)
115
working-directory: publish-pkg
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
116
run: npm publish --provenance --access public
0 commit comments