We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0dff78 commit fe9bd33Copy full SHA for fe9bd33
1 file changed
.github/workflows/publish.yml
@@ -0,0 +1,34 @@
1
+name: Publish
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
8
+jobs:
9
+ publish:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: read
13
+ id-token: write
14
15
+ steps:
16
+ - uses: actions/checkout@v4
17
18
+ - uses: pnpm/action-setup@v4
19
20
+ - uses: actions/setup-node@v4
21
+ with:
22
+ node-version: 20
23
+ cache: pnpm
24
+ registry-url: https://registry.npmjs.org
25
26
+ - run: pnpm install --frozen-lockfile
27
28
+ - run: pnpm build
29
30
+ - run: pnpm test
31
32
+ - run: pnpm -r publish --no-git-checks --access public
33
+ env:
34
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments