Skip to content

Commit 8eef38a

Browse files
committed
ci: Add npm release
1 parent 4b80c8a commit 8eef38a

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches: [develop]
66

77
jobs:
8-
build:
8+
build-docs:
99
runs-on: ubuntu-latest
1010

1111
steps:

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
build-release:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Setup Node JS
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: 12.x
17+
- run: yarn install --ignore-engines
18+
- run: yarn lint:nofix
19+
- run: yarn test
20+
- name: Release to npm 🚀
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
24+
run: |
25+
yarn add semantic-release
26+
yarn semantic-release

0 commit comments

Comments
 (0)