-
-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (31 loc) · 1.23 KB
/
ci-production-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
# This workflow will do a clean install of node dependencies, do an Angular production build across different
# versions of node and OSes.
# See: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Angular Production Build
on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
jobs:
build:
name: node ${{ matrix.node_version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node_version: ["18.20.2"]
npm_version: ["10.9.0"]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
- name: Upgrade npm
run: npm install -g npm@${{ matrix.npm_version }}
- name: Build Realtime server dependencies for Angular
run: cd src/RealtimeServer && (npm ci || (sleep 3m && npm ci))
- name: Angular Frontend Production Build
run: cd src/SIL.XForge.Scripture/ClientApp && (npm ci || (sleep 3m && npm ci)) && npm run build