Skip to content

Commit b6a99f3

Browse files
committed
ci: use pnpm to publish with trusted publishing
1 parent c2f19a9 commit b6a99f3

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v6
1616

17+
- run: corepack enable
18+
1719
- uses: actions/setup-node@v6
1820
with:
1921
node-version: lts/*
2022
registry-url: 'https://registry.npmjs.org'
2123

22-
- name: Ensure npm supports trusted publishing
23-
run: npm install -g npm@latest
24-
2524
- uses: voidzero-dev/setup-vp@v1
2625
with:
2726
cache: true
@@ -30,4 +29,4 @@ jobs:
3029
- run: vp test
3130

3231
- name: Publish to npm with trusted publishing
33-
run: npm publish
32+
run: pnpm publish --provenance --no-git-checks

0 commit comments

Comments
 (0)