Skip to content

Commit 44686b5

Browse files
authored
Update node.js.yml
1 parent 0ce6c9d commit 44686b5

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/node.js.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,28 @@ on:
33
push:
44
branches:
55
- master
6+
67
jobs:
78
build-and-deploy:
89
runs-on: ubuntu-latest
910
steps:
1011
- name: Checkout
11-
uses: actions/checkout@master
12+
uses: actions/checkout@v2
13+
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: '18.16.0'
18+
19+
- name: Install dependencies
20+
run: npm install
21+
22+
- name: Build docs
23+
run: npm run build
1224

13-
- name: Build and Deploy
14-
uses: JamesIves/github-pages-deploy-action@master
15-
env:
25+
- name: Deploy to GitHub Pages
26+
uses: JamesIves/github-pages-deploy-action@v4
27+
with:
1628
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
1729
BRANCH: gh-pages
1830
FOLDER: .vuepress/dist
19-
BUILD_SCRIPT: npm install && npm run build

0 commit comments

Comments
 (0)