We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f50c33 commit 0f781edCopy full SHA for 0f781ed
1 file changed
.github/workflows/publish.yaml
@@ -0,0 +1,32 @@
1
+name: Publish package to npm
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
8
+jobs:
9
+ publish-npm:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
14
+ - uses: pnpm/action-setup@v2
15
+ with:
16
+ version: 9.6.0
17
18
+ - uses: actions/setup-node@v4
19
20
+ node-version: 18
21
+ registry-url: https://registry.npmjs.org/
22
+ cache: pnpm
23
24
+ - run: pnpm install
25
26
+ - run: |
27
+ VERSION=${{ github.ref_name }}
28
+ pnpm setVersion -v ${VERSION:1}
29
30
+ - run: pnpm publish --no-git-checks
31
+ env:
32
+ NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
0 commit comments