Skip to content

Commit d1cdf76

Browse files
committed
ci: align npm trusted publishing workflow
1 parent cc3868f commit d1cdf76

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,18 @@ jobs:
2929
- name: Setup Node.js
3030
uses: actions/setup-node@v4
3131
with:
32-
node-version: 20
32+
node-version: 24
3333
cache: pnpm
3434
registry-url: https://registry.npmjs.org
3535

36+
- name: Setup npm CLI for trusted publishing
37+
run: npm install -g npm@11.5.1
38+
39+
- name: Show runtime versions
40+
run: |
41+
node --version
42+
npm --version
43+
3644
- name: Validate tag matches package version
3745
run: |
3846
PACKAGE_VERSION="$(node -p "require('./package.json').version")"
@@ -57,4 +65,4 @@ jobs:
5765
run: pnpm release:check
5866

5967
- name: Publish
60-
run: npm publish --provenance --access public
68+
run: npm publish --access public

0 commit comments

Comments
 (0)