-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1009 Bytes
/
Copy pathangularBuild.yml
File metadata and controls
44 lines (37 loc) · 1009 Bytes
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
37
38
39
40
41
42
43
44
name: Angular CI/CD
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Angular Build
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./autowatererfrontend
strategy:
matrix:
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- name: Checkout Source Code
uses: actions/checkout@v4
- name: Setup Nodejs
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: ./autowatererfrontend/package-lock.json
- name: Install dependencies
run: npm ci
# - name: Run tests
# run: npm run test:ci
- name: Build
run: npm run build --if-present
- name: Save Build Artifacts
uses: actions/upload-artifact@v4
with:
name: angular-build-artifact
path: autowatererfrontend/dist/