Skip to content

Commit 549f4bf

Browse files
authored
Update node.js.yml
1 parent 44686b5 commit 549f4bf

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

.github/workflows/node.js.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,17 @@ on:
33
push:
44
branches:
55
- master
6-
76
jobs:
87
build-and-deploy:
98
runs-on: ubuntu-latest
109
steps:
1110
- name: Checkout
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
11+
uses: actions/checkout@master
2412

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

0 commit comments

Comments
 (0)