Skip to content

Commit 93e5193

Browse files
committed
Update: Add deploy ci
1 parent 3ee4c27 commit 93e5193

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: automatic deploy
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
jobs:
7+
release:
8+
name: deploy
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: checkout
12+
uses: actions/checkout@v1
13+
- name: setup Node
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: '14.x'
17+
registry-url: 'https://registry.npmjs.org'
18+
- name: ci
19+
run: npm ci
20+
- name: build
21+
run: npm run build
22+
- name: deploy
23+
run: npm publish
24+
env:
25+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)