We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38132a1 commit 8d9a53fCopy full SHA for 8d9a53f
1 file changed
.github/workflows/testing.yml
@@ -0,0 +1,27 @@
1
+name: Publish to NPM public registry on release
2
+
3
+on:
4
+ workflow_dispatch:
5
6
+permissions:
7
+ contents: read
8
9
+jobs:
10
+ publish-npm:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ - uses: actions/setup-node@v4
15
+ with:
16
+ node-version: 18
17
+ registry-url: https://registry.npmjs.org/
18
+ cache: npm
19
+ - run: npm ci
20
+ - run: |
21
+ echo "Publishing $TAG_NAME"
22
+ npm version ${TAG_NAME} --git-tag-version=false
23
+ env:
24
+ TAG_NAME: ${{github.event.release.tag_name}}
25
+ - run: npm whoami; npm publish --access public
26
27
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
0 commit comments