Skip to content

Commit cba92fa

Browse files
committed
Add publish action
1 parent 422f0e6 commit cba92fa

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
run: yarn
2222
- name: Lint
2323
run: yarn lint
24-
2524
- name: "Build"
2625
run: yarn build
2726
- name: Upload build

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags: [ '*' ]
6+
7+
jobs:
8+
publish:
9+
runs-on: windows-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Use Node.js 12.x
13+
uses: actions/setup-node@v1
14+
with:
15+
node-version: 12.x
16+
- name: Install yarn
17+
run: npm install -g yarn
18+
- name: Install deps
19+
run: yarn
20+
- name: Lint
21+
run: yarn lint
22+
- name: "Build"
23+
run: yarn build
24+
- name: Publish
25+
uses: JS-DevTools/npm-publish@v1
26+
with:
27+
token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)