Skip to content

Commit d0e10be

Browse files
committed
fit: node.js.yml
1 parent b01466a commit d0e10be

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/node.js.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of nodeMore actions
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33

44
name: Node.js CI
@@ -17,21 +17,25 @@ permissions:
1717
jobs:
1818
build:
1919
runs-on: ubuntu-latest
20+
2021
strategy:
2122
matrix:
2223
node-version: [22.x]
24+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2325

2426
steps:
25-
- uses: actions/checkout@v4
27+
- uses: actions/checkout@v3
2628
- name: Use Node.js ${{ matrix.node-version }}
27-
uses: actions/setup-node@v4
29+
uses: actions/setup-node@v3
2830
with:
2931
node-version: ${{ matrix.node-version }}
3032
cache: "npm"
3133
- run: npm ci --force
3234
- run: npm install -g @angular/cli > /dev/null
3335
- run: ng build --output-path dist
34-
- run: cp dist/browser/index.html dist/browser/404.html
36+
37+
- name: Copy index.html to 404.html
38+
run: cp dist/browser/index.html dist/browser/404.html
3539

3640
- name: Upload artifact
3741
uses: actions/upload-pages-artifact@v3
@@ -47,4 +51,4 @@ jobs:
4751
steps:
4852
- name: Deploy to GitHub Pages
4953
id: deployment
50-
uses: actions/deploy-pages@v4
54+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)