Skip to content

Commit 190f011

Browse files
authored
Merge pull request #406 from Yumiue/main
fix:修复npm
2 parents 845edcd + f415c8b commit 190f011

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/pages.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,20 @@ concurrency:
1717

1818
jobs:
1919
build:
20+
env:
21+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
22+
defaults:
23+
run:
24+
working-directory: www
2025
runs-on: ubuntu-latest
2126
steps:
2227
- name: Checkout
2328
uses: actions/checkout@v5
24-
with:
25-
fetch-depth: 1
2629

2730
- name: Setup pnpm
2831
uses: pnpm/action-setup@v4
2932
with:
33+
version: 10.32.0
3034
run_install: false
3135

3236
- name: Setup Node
@@ -40,11 +44,9 @@ jobs:
4044
uses: actions/configure-pages@v4
4145

4246
- name: Install dependencies
43-
working-directory: www
4447
run: pnpm install --frozen-lockfile
4548

4649
- name: Build with VitePress
47-
working-directory: www
4850
run: pnpm docs:build
4951

5052
- name: Upload artifact

0 commit comments

Comments
 (0)