File tree Expand file tree Collapse file tree 1 file changed +21
-8
lines changed Expand file tree Collapse file tree 1 file changed +21
-8
lines changed Original file line number Diff line number Diff line change @@ -11,19 +11,32 @@ jobs:
11
11
12
12
steps :
13
13
- name : Checkout Repository
14
-
14
+ uses : actions/checkout@v2
15
+
16
+ - name : Set up Node.js
17
+ uses : actions/setup-node@v2
18
+ with :
19
+ node-version : ' 18.x' # Ensure the version matches your local environment
20
+
21
+ - name : Cache node_modules
22
+ uses : actions/cache@v2
23
+ with :
24
+ path : node_modules
25
+ key : ${{ runner.os }}-node_modules-${{ hashFiles('package-lock.json') }}
26
+ restore-keys : |
27
+ ${{ runner.os }}-node_modules-
28
+
29
+ - name : Install Angular CLI
30
+ run :
npm install -g @angular/[email protected] # Replace with the Angular CLI version you're using
15
31
16
- - name : Setup Node.js environment
17
-
18
-
19
32
- name : Install Dependencies
20
33
run : npm ci --legacy-peer-deps
21
34
22
- - name : Build the Angular Application
23
- run : npm run build
35
+ - name : Build Angular App
36
+ run : npm run build -- --configuration=production
24
37
25
- - name : Archive the Build Artifacts
26
- uses : actions/upload-artifact@v3
38
+ - name : Upload Build Artifacts
39
+ uses : actions/upload-artifact@v2
27
40
with :
28
41
name : dist
29
42
path : dist
You can’t perform that action at this time.
0 commit comments