Skip to content

Commit 56c6a79

Browse files
committed
fix(ci): update npm to 11.5.1+ for trusted publishing
1 parent c2f11c2 commit 56c6a79

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ jobs:
227227
- uses: actions/setup-node@v6
228228
with:
229229
node-version: 20
230+
registry-url: 'https://registry.npmjs.org'
230231
- uses: actions/download-artifact@v4
231232
with:
232233
path: crates/feedparser-rs-node/artifacts
@@ -240,9 +241,13 @@ jobs:
240241
ls -lh *.node || echo "No .node files found"
241242
- run: npm ci
242243
working-directory: crates/feedparser-rs-node
244+
- name: Update npm for trusted publishing
245+
run: npm install -g npm@latest
243246
- name: Publish with provenance
244247
working-directory: crates/feedparser-rs-node
245-
run: npm publish --access public --provenance --ignore-scripts
248+
run: |
249+
echo "npm version: $(npm --version)"
250+
npm publish --access public --ignore-scripts
246251
247252
# ============================================================================
248253
# GITHUB RELEASE

0 commit comments

Comments
 (0)