Skip to content

Commit c3998be

Browse files
committed
chore: Add github actions
1 parent 2dfa735 commit c3998be

File tree

2 files changed

+37
-16
lines changed

2 files changed

+37
-16
lines changed

.github/workflows/nodejs.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Use Node.js 10
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: 10
17+
- run: npm ci
18+
- run: npm run test:prod
19+
- run: npm run build
20+
env:
21+
CI: true
22+
23+
publish:
24+
needs: test
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: actions/setup-node@v1
29+
with:
30+
node-version: 10
31+
registry-url: https://registry.npmjs.org/
32+
- run: npm ci
33+
- run: npm run deploy-docs
34+
- run: npm run semantic-release
35+
env:
36+
CI: true
37+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)