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