Skip to content

Commit 8d9a53f

Browse files
committed
Testing publish
1 parent 38132a1 commit 8d9a53f

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/testing.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
env:
27+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)