Skip to content

Commit

Permalink
Update CI scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
filipsobol committed Mar 1, 2025
1 parent 502a64c commit f1e5666
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@ jobs:
uses: actions/checkout@v4

- name: Enable corepack
run: corepack enable
# https://github.com/nodejs/corepack/issues/627
run: npm i -g --force corepack && corepack enable

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20.18.3
node-version: >=20.18.3
cache: "pnpm"

# https://github.com/nodejs/corepack/issues/627
- run: npm i -g --force corepack && corepack enable

- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@ jobs:
uses: actions/checkout@v4

- name: Enable corepack
run: corepack enable
# https://github.com/nodejs/corepack/issues/627
run: npm i -g --force corepack && corepack enable

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: >=20.18.3
cache: "pnpm"

# https://github.com/nodejs/corepack/issues/627
- run: npm i -g --force corepack && corepack enable

- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
"private": true,
"type": "module",
"engines": {
"node": ">=20.18.3"
"node": ">=20.18.3",
"pnpm": ">=10.5.2"
},
"packageManager": "[email protected]+sha512.da9dc28cd3ff40d0592188235ab25d3202add8a207afbedc682220e4a0029ffbff4562102b9e6e46b4e3f9e8bd53e6d05de48544b0c57d4b0179e22c76d1199b",
"scripts": {
"test": "pnpm -r --stream run test",
"build": "pnpm -r --stream run build",
Expand Down

0 comments on commit f1e5666

Please sign in to comment.