Skip to content

Commit c8c69ff

Browse files
committed
angular build workflow update
1 parent ee2c95e commit c8c69ff

1 file changed

Lines changed: 29 additions & 9 deletions

File tree

.github/workflows/build-angular.yml

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,48 @@ on:
1414
jobs:
1515
build-angular:
1616
name: Build Angular
17-
runs-on: 'ubuntu-latest'
17+
runs-on: ${{ matrix.environment }}
18+
strategy:
19+
matrix:
20+
environment:
21+
- ubuntu-latest
22+
- windows-latest
1823

1924
steps:
2025
- name: 'Checkout'
2126
uses: actions/checkout@v3
2227

23-
- name: 'Setup Node.js 16.x'
28+
- name: 'Setup Node.js 16.3.1'
2429
uses: actions/setup-node@v3
2530
with:
26-
node-version: '16.x'
31+
node-version: '16.3.1'
2732
cache: 'npm'
2833
cache-dependency-path: 'MangoAPI.Client/package-lock.json'
29-
30-
- name: Npm ci
34+
35+
- name: 'Use node 16.3.1'
36+
run: nvm use 16.3.1
37+
38+
- name: 'Print current node version'
39+
run: node -v
40+
41+
- name: 'Print current npm version'
42+
run: npm -v
43+
44+
- name: 'Npm ci'
3145
working-directory: './MangoAPI.Client'
3246
run: npm ci
33-
34-
- name: Npm build prod
47+
48+
- name: 'Install angular cli 15.2.2'
49+
run: npm install -g @angular/cli@15.2.2
50+
51+
- name: 'Print current angular cli version'
52+
run: ng version
53+
54+
- name: 'Angular build'
3555
working-directory: './MangoAPI.Client'
36-
run: npm run build --production
56+
run: ng build
3757

38-
- name: Drop artifact
58+
- name: 'Drop artifact'
3959
uses: actions/upload-artifact@v3
4060
with:
4161
name: 'angular-build'

0 commit comments

Comments
 (0)