File tree Expand file tree Collapse file tree 2 files changed +35
-74
lines changed
Expand file tree Collapse file tree 2 files changed +35
-74
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+ on : push
3+ jobs :
4+ build :
5+ name : Build & test
6+ runs-on : ubuntu-18.04
7+ steps :
8+ - uses : actions/checkout@v2
9+
10+ - uses : actions/setup-node@v1
11+ with :
12+ node-version : 14.6
13+
14+ - name : Get npm cache directory
15+ id : npm-cache
16+ run : |
17+ echo "::set-output name=dir::$(npm config get cache)"
18+ - uses : actions/cache@v2
19+ with :
20+ path : ${{ steps.npm-cache.outputs.dir }}
21+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
22+ restore-keys : |
23+ ${{ runner.os }}-node-
24+
25+ - run : npm ci
26+
27+ - run : npm run build
28+ - run : npm run test
29+ - run : npm run test:release
30+
31+ - uses : actions/upload-artifact@v2
32+ with :
33+ name : distributables
34+ path : build/dist/*
35+ if-no-files-found : error
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments