Skip to content

Commit dea62e3

Browse files
authored
Fix GitHub action (#23)
1 parent 2fdd36d commit dea62e3

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/gh-pages.yml

+14-4
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@ jobs:
1212
- name: 'Checkout'
1313
uses: actions/checkout@master
1414
- name: 'Fetch dependencies'
15-
uses: bahmutov/npm-install@v1
15+
uses: pnpm/action-setup@v4
16+
with:
17+
version: 9
18+
run_install: |
19+
- recursive: true
20+
args: [--frozen-lockfile, --strict-peer-dependencies]
1621
- name: 'Move dependencies'
17-
run: yarn build
22+
run: pnpm run build
1823
- name: 'Build only'
1924
uses: shalzz/zola-deploy-action@master
2025
env:
@@ -28,9 +33,14 @@ jobs:
2833
- name: 'Checkout'
2934
uses: actions/checkout@master
3035
- name: 'Fetch dependencies'
31-
uses: bahmutov/npm-install@v1
36+
uses: pnpm/action-setup@v4
37+
with:
38+
version: 9
39+
run_install: |
40+
- recursive: true
41+
args: [--frozen-lockfile, --strict-peer-dependencies]
3242
- name: 'Move dependencies'
33-
run: yarn build
43+
run: pnpm run build
3444
- name: 'Build and deploy'
3545
uses: shalzz/zola-deploy-action@master
3646
env:

0 commit comments

Comments
 (0)