Skip to content

Commit 576c59e

Browse files
committed
Only build on release
1 parent 71f151b commit 576c59e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/publish-package.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Node.js Package
22

33
on:
4-
push:
5-
branches:
6-
- main
74
release:
85
types:
96
- published
@@ -24,7 +21,7 @@ jobs:
2421
needs: test
2522
runs-on: ubuntu-latest
2623
permissions:
27-
id-token: write
24+
packages: write
2825
contents: read
2926
steps:
3027
- uses: actions/checkout@v3
@@ -35,6 +32,6 @@ jobs:
3532
registry-url: 'https://registry.npmjs.org'
3633
- name: Install dependencies
3734
run: npm ci --ignore-scripts
38-
- run: npm publish --provenance --access public
35+
- run: npm publish
3936
env:
40-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
37+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)