Skip to content

Commit ecbd53c

Browse files
committed
- Added NPM publish on release action
1 parent 6706e0f commit ecbd53c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/npm_deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: NPM Publish
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: 18
15+
- name: Install Node types
16+
run: npm install @types/node
17+
- name: Run build
18+
run: npm run build
19+
- name: Publish package
20+
uses: JS-DevTools/npm-publish@v1
21+
with:
22+
token: ${{ secrets.NPM }}

0 commit comments

Comments
 (0)