Skip to content

Commit 68a2d5c

Browse files
committed
release: v0.7.0
use npm publish
1 parent 43d38e9 commit 68a2d5c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ on:
44
push:
55
branches: [main]
66

7-
permissions:
8-
contents: write
9-
107
jobs:
118
release:
129
if: startsWith(github.event.head_commit.message, 'release')
1310
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
id-token: write # for `npm publish --provenance`
1414
steps:
1515
- uses: actions/checkout@v4
1616
with:
@@ -44,6 +44,6 @@ jobs:
4444
run: pnpm i
4545

4646
- name: Publish to NPM
47-
run: pnpm -r publish --access public --no-git-checks
47+
run: npm publish --tag latest --provenance --access public
4848
env:
4949
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)