Skip to content

Commit 5f35937

Browse files
committed
update github action
1 parent e4c6fbf commit 5f35937

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/build-www.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,24 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818

19+
- name: Setup pnpm
20+
uses: pnpm/action-setup@v4
21+
with:
22+
version: 9
23+
1924
- name: Use Node.js ${{ matrix.node-version }}
2025
uses: actions/setup-node@v4
2126
with:
2227
node-version: ${{ matrix.node-version }}
2328
cache: 'pnpm'
29+
cache-dependency-path: pnpm-lock.yaml
2430

2531
- uses: actions/checkout@v4 # checkout gh-pages into a different folder
2632
with:
2733
ref: gh-pages
2834
path: www
2935
fetch-depth: 1
3036

31-
- name: Setup pnpm
32-
uses: pnpm/action-setup@v4
33-
with:
34-
version: 9
35-
3637
- name: Install dependencies
3738
run: pnpm install --frozen-lockfile
3839

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ build
2222
/example/www
2323
/es
2424
/lib
25+
/nul

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ build
3030
/pnpm-lock.yaml
3131
/.parcel-cache
3232
/typedoc.json
33+
/nul

0 commit comments

Comments
 (0)