Skip to content

Commit 8e2d499

Browse files
committed
Update CI workflow on main branch
1 parent e7159ce commit 8e2d499

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: CI
22

3-
on:
4-
push:
5-
branches: [main]
6-
pull_request:
7-
branches: [main]
3+
on: [push]
84

95
jobs:
106
build:
@@ -19,20 +15,26 @@ jobs:
1915
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
2016
restore-keys: ${{ runner.os }}-node-
2117

18+
- name: Get Node.js version
19+
id: nodejs
20+
run: echo ::set-output name=nodeVersion::$(cat .node-version)
21+
2222
- name: Setup Node.js environment
2323
uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ steps.nodejs.outputs.nodeVersion }}
2426

2527
- name: Install npm packages
26-
run: npm install
27-
28-
- name: Build
29-
run: npm run build -- --prod
28+
run: npm ci
3029

3130
- name: Lint
3231
run: npm run lint
3332

3433
- name: Test
3534
run: npm run test
36-
35+
3736
- name: Prettier
3837
run: npm run prettier-check
38+
39+
- name: Build
40+
run: npm run build -- --configuration production

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/dist
55
/tmp
66
/out-tsc
7-
/.angular/cache
7+
/.angular
88
# Only exists if Bazel was run
99
/bazel-out
1010

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
16.13.1

0 commit comments

Comments
 (0)