File tree Expand file tree Collapse file tree 3 files changed +14
-11
lines changed Expand file tree Collapse file tree 3 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
3
- on :
4
- push :
5
- branches : [main]
6
- pull_request :
7
- branches : [main]
3
+ on : [push]
8
4
9
5
jobs :
10
6
build :
@@ -19,20 +15,26 @@ jobs:
19
15
key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
20
16
restore-keys : ${{ runner.os }}-node-
21
17
18
+ - name : Get Node.js version
19
+ id : nodejs
20
+ run : echo ::set-output name=nodeVersion::$(cat .node-version)
21
+
22
22
- name : Setup Node.js environment
23
23
uses : actions/setup-node@v1
24
+ with :
25
+ node-version : ${{ steps.nodejs.outputs.nodeVersion }}
24
26
25
27
- name : Install npm packages
26
- run : npm install
27
-
28
- - name : Build
29
- run : npm run build -- --prod
28
+ run : npm ci
30
29
31
30
- name : Lint
32
31
run : npm run lint
33
32
34
33
- name : Test
35
34
run : npm run test
36
-
35
+
37
36
- name : Prettier
38
37
run : npm run prettier-check
38
+
39
+ - name : Build
40
+ run : npm run build -- --configuration production
Original file line number Diff line number Diff line change 4
4
/dist
5
5
/tmp
6
6
/out-tsc
7
- /.angular / cache
7
+ /.angular
8
8
# Only exists if Bazel was run
9
9
/bazel-out
10
10
Original file line number Diff line number Diff line change
1
+ 16.13.1
You can’t perform that action at this time.
0 commit comments