Skip to content

Commit f66c48a

Browse files
committed
ci: pin npm cli for trusted publishing
1 parent d939d6e commit f66c48a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎.github/workflows/npm-publish.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Publish Package to npmjs
22
on:
3+
workflow_dispatch:
34
release:
45
types: [published]
56
jobs:
@@ -19,8 +20,10 @@ jobs:
1920
with:
2021
node-version: '24'
2122
registry-url: 'https://registry.npmjs.org'
22-
cache: pnpm
23+
package-manager-cache: false
2324
- run: pnpm install --frozen-lockfile
2425
- run: pnpm run build
2526
- run: pnpm test
27+
- run: npm install -g npm@latest
28+
- run: npm --version
2629
- run: npm publish

0 commit comments

Comments
 (0)