-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 978 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
name: Build
on: push
jobs:
test:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: 14
- name: Cache .npm
id: npm-cache
uses: actions/cache@v2
with:
path: |
~/.npm
key: ${{ runner.os }}-npm-module-cache-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-module-cache-
- name: Cache node_modules and .cache
id: node-modules-cache
uses: actions/cache@v2
with:
path: |
./node_modules
~/.cache
key: ${{ runner.os }}-${{ github.ref }}-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: npm install
- name: Build workspace
run: npm run build