Skip to content

Commit afb347a

Browse files
Update node.js.yml
1 parent 9f4dd5f commit afb347a

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

.github/workflows/node.js.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,10 @@ on:
1111

1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
16-
1715
strategy:
1816
matrix:
1917
node-version: [18.x, 20.x, 22.x]
20-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2118

2219
steps:
2320
- uses: actions/checkout@v4
@@ -27,5 +24,22 @@ jobs:
2724
node-version: ${{ matrix.node-version }}
2825
cache: 'npm'
2926
- run: npm ci
30-
- run: npm run build --if-present
31-
- run: npm test
27+
- run: npm run build
28+
- name: Upload GitHub Pages artifact
29+
uses: actions/upload-pages-artifact@v3
30+
with:
31+
path: ./dist
32+
33+
deploy:
34+
needs: build
35+
runs-on: ubuntu-latest
36+
permissions:
37+
pages: write
38+
id-token: write
39+
environment:
40+
name: github-pages
41+
url: ${{ steps.deployment.outputs.page_url }}
42+
steps:
43+
- name: Deploy to GitHub Pages
44+
id: deployment
45+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)