You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/deploy.yml
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -13,15 +13,19 @@ jobs:
13
13
runs-on: ubuntu-latest
14
14
steps:
15
15
- name: Checkout repository
16
-
uses: actions/checkout@v3
16
+
uses: actions/checkout@v4
17
17
18
18
- name: Set up Node.js
19
-
uses: actions/setup-node@v3
19
+
uses: actions/setup-node@v4
20
20
with:
21
21
node-version: '16'
22
+
cache: 'yarn'
22
23
23
-
- name: Install dependencies
24
-
run: npm ci
24
+
- name: Install Yarn
25
+
run: npm install -g yarn
26
+
27
+
- name: Install dependencies with Yarn
28
+
run: yarn install --frozen-lockfile
25
29
26
30
- name: Generate build timestamp
27
31
id: timestamp
@@ -32,7 +36,7 @@ jobs:
32
36
33
37
- name: Build Angular app
34
38
run: |
35
-
npm run build --configuration production --output-path=docs --base-href="/${{ github.event.repository.name }}/" 2>&1 | tee deployment_logs/build_log_${{ steps.timestamp.outputs.timestamp }}.txt
39
+
yarn build --configuration production --output-path=docs --base-href="/${{ github.event.repository.name }}/" 2>&1 | tee deployment_logs/build_log_${{ steps.timestamp.outputs.timestamp }}.txt
0 commit comments