-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 946 Bytes
/
build.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
34
35
36
37
38
name: Build project
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Install Node.js 10
uses: actions/setup-node@v1
with:
node-version: 10
- name: Setup cache
uses: bahmutov/npm-install@HEAD
- name: Install dependencies
run: npm t
- name: Test and build code
run: npm run validate
- name: Upload test reports
uses: codecov/codecov-action@v1
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
branches: |
[
'main',
{
name: 'beta',
prerelease: true
}
]