Skip to content

Commit

Permalink
Fix Corepack step order and define Node.js version in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb committed Sep 7, 2024
1 parent 30afeee commit 850740e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,16 @@ jobs:
python-version-file: examples/pyproject.toml
cache-dependency-path: examples/pdm.lock

- name: Enable Corepack
run: corepack enable pnpm

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: pnpm
node-version-file: docs/package.json
cache-dependency-path: docs/pnpm-lock.yaml

- name: Enable Corepack
run: corepack enable pnpm

- name: Install all dependencies
run: just install

Expand Down
4 changes: 4 additions & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@
"astro": "^4.15.1",
"astro-auto-import": "^0.4.2"
},
"engines": {
"node": ">= 20.0.0 <21"
},
"engineStrict": true,
"packageManager": "pnpm@9.9.0"
}

0 comments on commit 850740e

Please sign in to comment.