Skip to content

ci(workflows/ci): setup node before enabling corepack #300

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup target Node.js to enable Corepack
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- name: Enable Corepack
run: corepack enable

- name: Setup Node.js ${{ matrix.node }}
- name: Setup Node.js ${{ matrix.node }} with cache
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install Dependencies
run: yarn --immutable

- uses: andresz1/size-limit-action@v1
- uses: andresz1/size-limit-action@v1.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
skip_step: install
Expand Down
4 changes: 0 additions & 4 deletions .size-limit.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,5 @@
{
"path": "./lib/index.js",
"limit": "2.8kB"
},
{
"path": "./lib/worker.mjs",
"limit": "180B"
}
]
173 changes: 21 additions & 152 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -216,16 +216,7 @@ __metadata:
languageName: node
linkType: hard

"@1stg/tsconfig@npm:^2.3.2":
version: 2.3.2
resolution: "@1stg/tsconfig@npm:2.3.2"
peerDependencies:
typescript: ">=3.0.0"
checksum: 4670b7f7f3b5240fb9099bb423f5332f927904d1d489767c4658033a0bf273918e39c5fb2d20249cf762813f7798c6c4bd2efc6008f7f148917bc1fd16ab7c2f
languageName: node
linkType: hard

"@1stg/tsconfig@npm:^2.3.3":
"@1stg/tsconfig@npm:^2.3.2, @1stg/tsconfig@npm:^2.3.3":
version: 2.3.3
resolution: "@1stg/tsconfig@npm:2.3.3"
peerDependencies:
Expand Down Expand Up @@ -2745,31 +2736,13 @@ __metadata:
languageName: node
linkType: hard

"@eslint/js@npm:8.55.0":
version: 8.55.0
resolution: "@eslint/js@npm:8.55.0"
checksum: 34b001a95b16501fd64f525b1de3ab0e4c252e5820b74069004934cb13977fc04ba4522a3e8f8074bd6af49da10d3444cd49fa711819f425ad73d6bf46eea82d
languageName: node
linkType: hard

"@eslint/js@npm:8.57.0":
version: 8.57.0
resolution: "@eslint/js@npm:8.57.0"
checksum: 3c501ce8a997cf6cbbaf4ed358af5492875e3550c19b9621413b82caa9ae5382c584b0efa79835639e6e0ddaa568caf3499318e5bdab68643ef4199dce5eb0a0
languageName: node
linkType: hard

"@humanwhocodes/config-array@npm:^0.11.13":
version: 0.11.13
resolution: "@humanwhocodes/config-array@npm:0.11.13"
dependencies:
"@humanwhocodes/object-schema": "npm:^2.0.1"
debug: "npm:^4.1.1"
minimatch: "npm:^3.0.5"
checksum: 9f655e1df7efa5a86822cd149ca5cef57240bb8ffd728f0c07cc682cc0a15c6bdce68425fbfd58f9b3e8b16f79b3fd8cb1e96b10c434c9a76f20b2a89f213272
languageName: node
linkType: hard

"@humanwhocodes/config-array@npm:^0.11.14":
version: 0.11.14
resolution: "@humanwhocodes/config-array@npm:0.11.14"
Expand All @@ -2788,13 +2761,6 @@ __metadata:
languageName: node
linkType: hard

"@humanwhocodes/object-schema@npm:^2.0.1":
version: 2.0.1
resolution: "@humanwhocodes/object-schema@npm:2.0.1"
checksum: dbddfd0465aecf92ed845ec30d06dba3f7bb2496d544b33b53dac7abc40370c0e46b8787b268d24a366730d5eeb5336ac88967232072a183905ee4abf7df4dab
languageName: node
linkType: hard

"@humanwhocodes/object-schema@npm:^2.0.2":
version: 2.0.3
resolution: "@humanwhocodes/object-schema@npm:2.0.3"
Expand Down Expand Up @@ -3779,16 +3745,7 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:^18.0.0":
version: 18.19.2
resolution: "@types/node@npm:18.19.2"
dependencies:
undici-types: "npm:~5.26.4"
checksum: 122958ac4be81ea2b53da53de29441f8d98d572cc5c704c6bba788343281a47185a405cf0c650a702b7549e09584a7a39a51f27658088a8d8192163bcac079a0
languageName: node
linkType: hard

"@types/node@npm:^18.19.39":
"@types/node@npm:^18.0.0, @types/node@npm:^18.19.39":
version: 18.19.39
resolution: "@types/node@npm:18.19.39"
dependencies:
Expand Down Expand Up @@ -5454,7 +5411,19 @@ __metadata:
languageName: node
linkType: hard

"debug@npm:4, debug@npm:4.3.4, debug@npm:^4.0.0, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.4":
"debug@npm:4, debug@npm:^4.0.0, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.4, debug@npm:^4.3.5":
version: 4.3.5
resolution: "debug@npm:4.3.5"
dependencies:
ms: "npm:2.1.2"
peerDependenciesMeta:
supports-color:
optional: true
checksum: cb6eab424c410e07813ca1392888589972ce9a32b8829c6508f5e1f25f3c3e70a76731610ae55b4bbe58d1a2fffa1424b30e97fa8d394e49cd2656a9643aedd2
languageName: node
linkType: hard

"debug@npm:4.3.4":
version: 4.3.4
resolution: "debug@npm:4.3.4"
dependencies:
Expand All @@ -5475,18 +5444,6 @@ __metadata:
languageName: node
linkType: hard

"debug@npm:^4.3.5":
version: 4.3.5
resolution: "debug@npm:4.3.5"
dependencies:
ms: "npm:2.1.2"
peerDependenciesMeta:
supports-color:
optional: true
checksum: cb6eab424c410e07813ca1392888589972ce9a32b8829c6508f5e1f25f3c3e70a76731610ae55b4bbe58d1a2fffa1424b30e97fa8d394e49cd2656a9643aedd2
languageName: node
linkType: hard

"decamelize-keys@npm:^1.1.0":
version: 1.1.1
resolution: "decamelize-keys@npm:1.1.1"
Expand Down Expand Up @@ -6215,19 +6172,7 @@ __metadata:
languageName: node
linkType: hard

"eslint-module-utils@npm:^2.8.0":
version: 2.8.0
resolution: "eslint-module-utils@npm:2.8.0"
dependencies:
debug: "npm:^3.2.7"
peerDependenciesMeta:
eslint:
optional: true
checksum: a9a7ed93eb858092e3cdc797357d4ead2b3ea06959b0eada31ab13862d46a59eb064b9cb82302214232e547980ce33618c2992f6821138a4934e65710ed9cc29
languageName: node
linkType: hard

"eslint-module-utils@npm:^2.8.1":
"eslint-module-utils@npm:^2.8.0, eslint-module-utils@npm:^2.8.1":
version: 2.8.1
resolution: "eslint-module-utils@npm:2.8.1"
dependencies:
Expand Down Expand Up @@ -6266,26 +6211,7 @@ __metadata:
languageName: node
linkType: hard

"eslint-plugin-import@npm:eslint-plugin-i@^2.27.5":
version: 2.29.0
resolution: "eslint-plugin-i@npm:2.29.0"
dependencies:
debug: "npm:^3.2.7"
doctrine: "npm:^2.1.0"
eslint-import-resolver-node: "npm:^0.3.9"
eslint-module-utils: "npm:^2.8.0"
get-tsconfig: "npm:^4.6.2"
is-glob: "npm:^4.0.3"
minimatch: "npm:^3.1.2"
resolve: "npm:^1.22.3"
semver: "npm:^7.5.3"
peerDependencies:
eslint: ^7.2.0 || ^8
checksum: fb0e694b1e57962c97aa573223cec79fff72351d0f98d8ea28a6d31716a9f7224ae995f68b8d51ede5987add61582760fc137d7a7ec2bb7ce7d1f834c675adb8
languageName: node
linkType: hard

"eslint-plugin-import@npm:eslint-plugin-i@^2.29.1":
"eslint-plugin-import@npm:eslint-plugin-i@^2.27.5, eslint-plugin-import@npm:eslint-plugin-i@^2.29.1":
version: 2.29.1
resolution: "eslint-plugin-i@npm:2.29.1"
dependencies:
Expand Down Expand Up @@ -6682,55 +6608,7 @@ __metadata:
languageName: node
linkType: hard

"eslint@npm:^8.43.0":
version: 8.55.0
resolution: "eslint@npm:8.55.0"
dependencies:
"@eslint-community/eslint-utils": "npm:^4.2.0"
"@eslint-community/regexpp": "npm:^4.6.1"
"@eslint/eslintrc": "npm:^2.1.4"
"@eslint/js": "npm:8.55.0"
"@humanwhocodes/config-array": "npm:^0.11.13"
"@humanwhocodes/module-importer": "npm:^1.0.1"
"@nodelib/fs.walk": "npm:^1.2.8"
"@ungap/structured-clone": "npm:^1.2.0"
ajv: "npm:^6.12.4"
chalk: "npm:^4.0.0"
cross-spawn: "npm:^7.0.2"
debug: "npm:^4.3.2"
doctrine: "npm:^3.0.0"
escape-string-regexp: "npm:^4.0.0"
eslint-scope: "npm:^7.2.2"
eslint-visitor-keys: "npm:^3.4.3"
espree: "npm:^9.6.1"
esquery: "npm:^1.4.2"
esutils: "npm:^2.0.2"
fast-deep-equal: "npm:^3.1.3"
file-entry-cache: "npm:^6.0.1"
find-up: "npm:^5.0.0"
glob-parent: "npm:^6.0.2"
globals: "npm:^13.19.0"
graphemer: "npm:^1.4.0"
ignore: "npm:^5.2.0"
imurmurhash: "npm:^0.1.4"
is-glob: "npm:^4.0.0"
is-path-inside: "npm:^3.0.3"
js-yaml: "npm:^4.1.0"
json-stable-stringify-without-jsonify: "npm:^1.0.1"
levn: "npm:^0.4.1"
lodash.merge: "npm:^4.6.2"
minimatch: "npm:^3.1.2"
natural-compare: "npm:^1.4.0"
optionator: "npm:^0.9.3"
strip-ansi: "npm:^6.0.1"
text-table: "npm:^0.2.0"
bin:
eslint: bin/eslint.js
checksum: afd016cfbe9e9d667b3f98c14c681a7e518808f6c30856e56cbb02248900eac5bf6dc5e577a7eaec259539486db48ef7d16ef58fb14b1585ba7c84b35490c53c
languageName: node
linkType: hard

"eslint@npm:^8.57.0":
"eslint@npm:^8.43.0, eslint@npm:^8.57.0":
version: 8.57.0
resolution: "eslint@npm:8.57.0"
dependencies:
Expand Down Expand Up @@ -7377,16 +7255,7 @@ __metadata:
languageName: node
linkType: hard

"get-tsconfig@npm:^4.6.2, get-tsconfig@npm:^4.7.0, get-tsconfig@npm:^4.7.2":
version: 4.7.2
resolution: "get-tsconfig@npm:4.7.2"
dependencies:
resolve-pkg-maps: "npm:^1.0.0"
checksum: f21135848fb5d16012269b7b34b186af7a41824830f8616aba17a15eb4d9e54fdc876833f1e21768395215a826c8145582f5acd594ae2b4de3284d10b38d20f8
languageName: node
linkType: hard

"get-tsconfig@npm:^4.7.5":
"get-tsconfig@npm:^4.7.0, get-tsconfig@npm:^4.7.2, get-tsconfig@npm:^4.7.5":
version: 4.7.5
resolution: "get-tsconfig@npm:4.7.5"
dependencies:
Expand Down Expand Up @@ -12548,7 +12417,7 @@ __metadata:
languageName: node
linkType: hard

"resolve@npm:^1.10.0, resolve@npm:^1.14.2, resolve@npm:^1.22.1, resolve@npm:^1.22.2, resolve@npm:^1.22.3, resolve@npm:^1.22.4":
"resolve@npm:^1.10.0, resolve@npm:^1.14.2, resolve@npm:^1.22.1, resolve@npm:^1.22.2, resolve@npm:^1.22.4":
version: 1.22.8
resolution: "resolve@npm:1.22.8"
dependencies:
Expand All @@ -12574,7 +12443,7 @@ __metadata:
languageName: node
linkType: hard

"resolve@patch:resolve@npm%3A^1.10.0#optional!builtin<compat/resolve>, resolve@patch:resolve@npm%3A^1.14.2#optional!builtin<compat/resolve>, resolve@patch:resolve@npm%3A^1.22.1#optional!builtin<compat/resolve>, resolve@patch:resolve@npm%3A^1.22.2#optional!builtin<compat/resolve>, resolve@patch:resolve@npm%3A^1.22.3#optional!builtin<compat/resolve>, resolve@patch:resolve@npm%3A^1.22.4#optional!builtin<compat/resolve>":
"resolve@patch:resolve@npm%3A^1.10.0#optional!builtin<compat/resolve>, resolve@patch:resolve@npm%3A^1.14.2#optional!builtin<compat/resolve>, resolve@patch:resolve@npm%3A^1.22.1#optional!builtin<compat/resolve>, resolve@patch:resolve@npm%3A^1.22.2#optional!builtin<compat/resolve>, resolve@patch:resolve@npm%3A^1.22.4#optional!builtin<compat/resolve>":
version: 1.22.8
resolution: "resolve@patch:resolve@npm%3A1.22.8#optional!builtin<compat/resolve>::version=1.22.8&hash=c3c19d"
dependencies:
Expand Down
Loading