File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414jobs :
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'
You can’t perform that action at this time.
0 commit comments