-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (30 loc) · 844 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
name: Build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
name: ci
steps:
- name: checkout repo
uses: actions/checkout@v2
- name: get cached dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: install dependencies recursively
run: npm run init
- name: compile and lint
run: npm run compile:prod -- --project ${{ github.workspace }}
- name: copy files to dist
run: npm run copy
- name: publish dist folder
uses: actions/upload-artifact@v2
with:
name: dist
path: ${{ github.workspace }}/dist/