We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64f9f1b commit 58df00aCopy full SHA for 58df00a
.github/workflows/release.yml
@@ -6,6 +6,10 @@ on:
6
tags:
7
- 'v*.*.*'
8
9
+permissions:
10
+ id-token: write
11
+ contents: read
12
+
13
jobs:
14
publish:
15
runs-on: ubuntu-latest
@@ -16,13 +20,13 @@ jobs:
16
20
- name: Setup node
17
21
uses: actions/setup-node@v4
18
22
with:
19
- node-version: '20'
23
+ node-version: '22'
24
registry-url: https://registry.npmjs.org/
25
26
- name: Setup pnpm
27
uses: pnpm/action-setup@v2
28
- version: 8
29
+ version: latest
30
31
- name: Install dependencies
32
run: pnpm install --frozen-lockfile
@@ -31,6 +35,5 @@ jobs:
35
run: pnpm build
36
33
37
- name: Publish package
34
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
38
run: npm publish --access public
39
+ if: startsWith(github.ref, 'refs/tags/')
0 commit comments