Skip to content

Commit 91809e4

Browse files
committed
CI: modify to pnpm to resolve CI issues
1 parent 645341e commit 91809e4

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

.github/workflows/static-site.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,25 @@ jobs:
2424
- name: Check Time
2525
run: date
2626

27+
- uses: pnpm/action-setup@v4
28+
with:
29+
version: 7
30+
2731
- uses: actions/setup-node@v4
2832
with:
2933
node-version: '16'
34+
cache: 'pnpm'
3035

31-
- name: Check yarn / node version
36+
- name: Check pnpm / node version
3237
run: |
33-
echo "yarn version $(yarn --version)"
38+
echo "pnpm version $(pnpm --version)"
3439
echo "node version $(node -v)"
3540
36-
- name: Cache dependencies
37-
uses: actions/cache@v3
38-
with:
39-
path: ~/.npm
40-
key: npm-${{ hashFiles('package-lock.json') }}
41-
restore-keys: npm-
42-
4341
- name: Install Dependencies
44-
run: yarn install
42+
run: pnpm install --frozen-lockfile
4543

4644
- name: Build Site
47-
run: yarn build
45+
run: pnpm build
4846

4947
- name: Deploy to GitHub Pages
5048
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)