Skip to content

Commit 8c422e5

Browse files
authored
ci: use trusted publishing (#37)
1 parent 622673c commit 8c422e5

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/build_and_publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
permissions:
1313
contents: write
1414
id-token: write
15+
packages: write
1516

1617
steps:
1718
- name: Checkout repository
@@ -60,10 +61,8 @@ jobs:
6061
message: "chore: bump version to ${{ steps.check-api.outputs.api-version }} [skip ci]"
6162

6263
- name: Publish to npm
63-
run: npm publish --provenance --ignore-scripts
64+
run: pnpm publish --access public --provenance --no-git-checks
6465
if: steps.check-tag.outputs.exists == 'false'
65-
env:
66-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6766

6867
- name: Checkout stoat.js repository
6968
if: steps.check-tag.outputs.exists == 'false'

0 commit comments

Comments
 (0)