Skip to content

Commit 87af4b7

Browse files
committed
feat: added publish to NPM workflow
1 parent 9585b0d commit 87af4b7

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/publish-npm.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publish to NPM Registry
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v4
11+
- name: Setup Node
12+
uses: actions/setup-node@v4
13+
with:
14+
registry-url: 'https://registry.npmjs.org'
15+
- name: Publish package on NPM 📦
16+
run: npm publish
17+
env:
18+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)