Skip to content

Commit b07ec9a

Browse files
xgopilotwynxing
andcommitted
fix(ci): scope node24 override to build job and simplify pages workflow
Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: Yumiue <188874804+Yumiue@users.noreply.github.com>
1 parent f706537 commit b07ec9a

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/pages.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
- "v*"
77
workflow_dispatch:
88

9-
env:
10-
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
11-
129
permissions:
1310
contents: read
1411
pages: write
@@ -20,12 +17,15 @@ concurrency:
2017

2118
jobs:
2219
build:
20+
env:
21+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
22+
defaults:
23+
run:
24+
working-directory: www
2325
runs-on: ubuntu-latest
2426
steps:
2527
- name: Checkout
2628
uses: actions/checkout@v5
27-
with:
28-
fetch-depth: 1
2929

3030
- name: Setup pnpm
3131
uses: pnpm/action-setup@v4
@@ -44,11 +44,9 @@ jobs:
4444
uses: actions/configure-pages@v4
4545

4646
- name: Install dependencies
47-
working-directory: www
4847
run: pnpm install --frozen-lockfile
4948

5049
- name: Build with VitePress
51-
working-directory: www
5250
run: pnpm docs:build
5351

5452
- name: Upload artifact

0 commit comments

Comments
 (0)