-
-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (28 loc) · 820 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: ci
on: [push]
jobs:
test:
runs-on: ubuntu-latest
env:
CI: true
VERSION_COMMIT: ${{ github.sha }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12.14
- name: Install NPM dependencies
run: npm ci
- name: Build source code
run: npm run build --if-present
- name: Test source code
run: npm test
- name: Submit coveralls test coverage report
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Check if release should be created
run: npm run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}