Skip to content

Commit 2564cf4

Browse files
authored
Create npm_publish.yml
1 parent b8445b4 commit 2564cf4

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/npm_publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish NPM Package
2+
on:
3+
push:
4+
branches:
5+
- main
6+
release:
7+
types: [created]
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v2
16+
with:
17+
node-version: '14'
18+
registry-url: 'https://registry.npmjs.org/'
19+
- run: npm install
20+
- run: npm test
21+
- run: npm publish
22+
env:
23+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 commit comments

Comments
 (0)