1 parent bb49a90 commit fabfbb5Copy full SHA for fabfbb5
1 file changed
.github/workflows/publish.yml
@@ -0,0 +1,30 @@
1
+name: Publish to npm
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - master
7
8
+permissions:
9
+ contents: write
10
11
+jobs:
12
+ publish:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ with:
17
+ token: ${{ secrets.GITHUB_TOKEN }}
18
+ - uses: actions/setup-node@v4
19
20
+ node-version: 20
21
+ registry-url: https://registry.npmjs.org/
22
+ - run: npm ci
23
+ - run: |
24
+ git config user.name "github-actions[bot]"
25
+ git config user.email "github-actions[bot]@users.noreply.github.com"
26
+ npm version patch -m "chore: bump version to %s [skip ci]"
27
+ git push
28
+ - run: npm publish
29
+ env:
30
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments