We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0ded3fa + d5e599d commit b610021Copy full SHA for b610021
1 file changed
.github/workflows/publish.yml
@@ -2,24 +2,25 @@ name: Publish Package
2
3
on:
4
push:
5
- branches:
6
- - main
+ tags:
+ - 'v*'
7
+
8
+permissions:
9
+ id-token: write
10
+ contents: read
11
12
jobs:
13
publish:
14
runs-on: ubuntu-latest
- permissions:
- contents: read
15
steps:
16
- uses: actions/checkout@v4
17
18
- uses: actions/setup-node@v4
19
with:
20
node-version: '20'
21
registry-url: 'https://registry.npmjs.org'
22
+ package-manager-cache: false
23
24
- run: npm ci
25
26
- run: npm publish --access public
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments