Skip to content

Commit 1bde456

Browse files
Add publishing to NPM pipe
1 parent 23e1f0e commit 1bde456

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Node.js CI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
env:
11+
NODE_VER: 14.17.6
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Use Node.js
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: ${{ env.NODE_VER }}
18+
19+
- name: Publish to npm
20+
if: env.DEPLOY_PACKAGE == 'true'
21+
run: ./scripts/publish.sh
22+
env:
23+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)