Skip to content

Commit a6719ad

Browse files
Update deploy.yml
1 parent 8f001f7 commit a6719ad

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,19 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717

1818
- name: Set up Node.js
19-
uses: actions/setup-node@v3
19+
uses: actions/setup-node@v4
2020
with:
2121
node-version: '16'
22+
cache: 'yarn'
2223

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
2529

2630
- name: Generate build timestamp
2731
id: timestamp
@@ -32,7 +36,7 @@ jobs:
3236

3337
- name: Build Angular app
3438
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
3640
3741
- name: Add .nojekyll file
3842
run: touch docs/.nojekyll

0 commit comments

Comments
 (0)