Skip to content

Commit 3c317bb

Browse files
committed
ci: pnpm from corepack
1 parent 7432b16 commit 3c317bb

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.github/workflows/docs.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deploy to Pages
22

33
on:
44
push:
5-
branches: ['main']
5+
branches: ["main"]
66
workflow_dispatch:
77

88
permissions:
@@ -11,33 +11,26 @@ permissions:
1111
id-token: write
1212

1313
concurrency:
14-
group: 'pages'
14+
group: "pages"
1515
cancel-in-progress: false
1616

1717
env:
18-
BUILD_PATH: '.'
18+
BUILD_PATH: "."
1919

2020
jobs:
2121
build:
2222
name: Build
2323
runs-on: ubuntu-latest
2424
steps:
25-
- name: Checkout
26-
uses: actions/checkout@v4
27-
- uses: pnpm/action-setup@v4
28-
with:
29-
version: 9
3025
- name: Setup Node
3126
uses: actions/setup-node@v4
3227
with:
33-
node-version: '20'
34-
cache: pnpm
35-
cache-dependency-path: pnpm-lock.yaml
28+
node-version: "20"
3629
- name: Setup Pages
3730
id: pages
3831
uses: actions/configure-pages@v5
3932
- name: Install dependencies
40-
run: pnpm i --frozen-lockfile
33+
run: corepack enable && pnpm i --frozen-lockfile
4134
working-directory: ${{ env.BUILD_PATH }}
4235
- name: Build
4336
run: |

0 commit comments

Comments
 (0)