Skip to content

Commit d5040fa

Browse files
committed
Added workflow
1 parent ee4e8e8 commit d5040fa

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/publish-npm.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish NPM Package
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout Code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '20'
20+
registry-url: "https://registry.npmjs/org/"
21+
22+
- name: Install Dependencies
23+
run: npm install
24+
25+
- name: Build Package
26+
run: npm run build
27+
28+
- name: Publish to NPM
29+
env:
30+
NODE_AUTH_TOKEN: $${{ secrets.NPM_TOKEN }}
31+
run: npm publish

0 commit comments

Comments
 (0)