Skip to content

Commit e74e025

Browse files
authored
fix: force use of node 22.14+ to avoid corepack sig errors (#364)
* fix: force use of node 22.14+ to avoid corepack sig errors * fix: only audit prod deps, run scripts for esbuild and simple-git-hooks, update local pnpm
1 parent b4cb110 commit e74e025

File tree

5 files changed

+13
-17
lines changed

5 files changed

+13
-17
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ env:
88
COREPACK_DEFAULT_TO_LATEST: 0
99
COREPACK_ENABLE_AUTO_PIN: 0
1010
COREPACK_ENABLE_STRICT: 1
11-
# see https://github.com/nodejs/corepack/issues/612#issuecomment-2631462297
12-
COREPACK_INTEGRITY_KEYS: '{"npm":[{"expires":"2025-01-29T00:00:00.000Z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE1Olb3zMAFFxXKHiIkQO5cJ3Yhl5i6UPp+IhuteBJbuHcA5UogKo0EWtlWwW6KSaKoTNEYL7JlCQiVnkhBktUgg=="},{"expires":null,"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEY6Ya7W++7aUPzvMTrezH6Ycx3c+HOKYCcNGybJZSCJq/fd7Qa8uuAKtdIkUQtQiEKERhAmE5lMMJhP8OkDOa2g=="}]}'
1311
# see https://turbo.build/repo/docs/telemetry#how-do-i-opt-out
1412
TURBO_TELEMETRY_DISABLED: 1
1513
DO_NOT_TRACK: 1
@@ -29,12 +27,12 @@ jobs:
2927
- uses: actions/checkout@v4
3028
- uses: actions/setup-node@v4
3129
with:
32-
node-version: 22
30+
node-version: ^22.14.0
3331
- run: corepack enable
3432
- run: pnpm --version
3533
- uses: actions/setup-node@v4
3634
with:
37-
node-version: 22
35+
node-version: ^22.14.0
3836
cache: "pnpm"
3937
cache-dependency-path: "**/pnpm-lock.yaml"
4038
- name: install
@@ -47,7 +45,7 @@ jobs:
4745
run: pnpm run typecheck
4846
- name: audit
4947
if: (${{ success() }} || ${{ failure() }})
50-
run: pnpm audit
48+
run: pnpm audit --prod --audit-level moderate
5149
- name: test
5250
if: (${{ success() }} || ${{ failure() }})
5351
run: pnpm test:self

.github/workflows/ecosystem-ci-from-pr.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ env:
99
COREPACK_DEFAULT_TO_LATEST: 0
1010
COREPACK_ENABLE_AUTO_PIN: 0
1111
COREPACK_ENABLE_STRICT: 1
12-
# see https://github.com/nodejs/corepack/issues/612#issuecomment-2631462297
13-
COREPACK_INTEGRITY_KEYS: '{"npm":[{"expires":"2025-01-29T00:00:00.000Z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE1Olb3zMAFFxXKHiIkQO5cJ3Yhl5i6UPp+IhuteBJbuHcA5UogKo0EWtlWwW6KSaKoTNEYL7JlCQiVnkhBktUgg=="},{"expires":null,"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEY6Ya7W++7aUPzvMTrezH6Ycx3c+HOKYCcNGybJZSCJq/fd7Qa8uuAKtdIkUQtQiEKERhAmE5lMMJhP8OkDOa2g=="}]}'
1412
# see https://turbo.build/repo/docs/telemetry#how-do-i-opt-out
1513
TURBO_TELEMETRY_DISABLED: 1
1614
DO_NOT_TRACK: 1
@@ -112,7 +110,7 @@ jobs:
112110
- uses: actions/checkout@v4
113111
- uses: actions/setup-node@v4
114112
with:
115-
node-version: 22
113+
node-version: ^22.14.0
116114
- uses: denoland/setup-deno@v1
117115
with:
118116
deno-version: v1.x
@@ -181,7 +179,7 @@ jobs:
181179
- uses: actions/checkout@v4
182180
- uses: actions/setup-node@v4
183181
with:
184-
node-version: 22
182+
node-version: ^22.14.0
185183
- uses: denoland/setup-deno@v1
186184
with:
187185
deno-version: v1.x

.github/workflows/ecosystem-ci-selected.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ env:
99
COREPACK_DEFAULT_TO_LATEST: 0
1010
COREPACK_ENABLE_AUTO_PIN: 0
1111
COREPACK_ENABLE_STRICT: 1
12-
# see https://github.com/nodejs/corepack/issues/612#issuecomment-2631462297
13-
COREPACK_INTEGRITY_KEYS: '{"npm":[{"expires":"2025-01-29T00:00:00.000Z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE1Olb3zMAFFxXKHiIkQO5cJ3Yhl5i6UPp+IhuteBJbuHcA5UogKo0EWtlWwW6KSaKoTNEYL7JlCQiVnkhBktUgg=="},{"expires":null,"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEY6Ya7W++7aUPzvMTrezH6Ycx3c+HOKYCcNGybJZSCJq/fd7Qa8uuAKtdIkUQtQiEKERhAmE5lMMJhP8OkDOa2g=="}]}'
1412
# see https://turbo.build/repo/docs/telemetry#how-do-i-opt-out
1513
TURBO_TELEMETRY_DISABLED: 1
1614
DO_NOT_TRACK: 1
@@ -83,7 +81,7 @@ jobs:
8381
- uses: actions/checkout@v4
8482
- uses: actions/setup-node@v4
8583
with:
86-
node-version: 22
84+
node-version: ^22.14.0
8785
id: setup-node
8886
- uses: denoland/setup-deno@v1
8987
with:

.github/workflows/ecosystem-ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ env:
99
COREPACK_DEFAULT_TO_LATEST: 0
1010
COREPACK_ENABLE_AUTO_PIN: 0
1111
COREPACK_ENABLE_STRICT: 1
12-
# see https://github.com/nodejs/corepack/issues/612#issuecomment-2631462297
13-
COREPACK_INTEGRITY_KEYS: '{"npm":[{"expires":"2025-01-29T00:00:00.000Z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE1Olb3zMAFFxXKHiIkQO5cJ3Yhl5i6UPp+IhuteBJbuHcA5UogKo0EWtlWwW6KSaKoTNEYL7JlCQiVnkhBktUgg=="},{"expires":null,"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEY6Ya7W++7aUPzvMTrezH6Ycx3c+HOKYCcNGybJZSCJq/fd7Qa8uuAKtdIkUQtQiEKERhAmE5lMMJhP8OkDOa2g=="}]}'
1412
# see https://turbo.build/repo/docs/telemetry#how-do-i-opt-out
1513
TURBO_TELEMETRY_DISABLED: 1
1614
DO_NOT_TRACK: 1
@@ -86,7 +84,7 @@ jobs:
8684
- uses: actions/checkout@v4
8785
- uses: actions/setup-node@v4
8886
with:
89-
node-version: 22
87+
node-version: ^22.14.0
9088
id: setup-node
9189
- uses: denoland/setup-deno@v1
9290
with:

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"eslint --fix"
2626
]
2727
},
28-
"packageManager": "pnpm@10.3.0",
28+
"packageManager": "pnpm@10.4.1",
2929
"type": "module",
3030
"engines": {
3131
"node": ">=18",
@@ -66,6 +66,10 @@
6666
"pnpm": {
6767
"overrides": {
6868
"cross-spawn@>=7.0.0 <7.0.5": "^7.0.6"
69-
}
69+
},
70+
"onlyBuiltDependencies": [
71+
"esbuild",
72+
"simple-git-hooks"
73+
]
7074
}
7175
}

0 commit comments

Comments
 (0)