-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.14 KB
/
node-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
34
35
36
37
38
39
40
41
42
name: Node.js CI
on:
push:
branches:
- master
pull_request:
jobs:
test-build-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Install npm packages using cache
uses: bahmutov/npm-install@v1
with:
# the IBI Group TSDX fork has some dependency issues
# that cause yarn install to fail on a ci runner. Disabling
# concurrency allows installation to complete successfully
install-command: yarn --frozen-lockfile --network-concurrency 1
- name: Copy example config
run: cp .env.tmp .env.build
- name: Lint code
run: yarn lint
- name: Lint docs
run: yarn lint-docs
# TODO: Add jest tests
# - name: Run tests with coverage
# run: yarn cover
- name: Build example project
run: yarn build
# at this point, the build is successful
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn semantic-release