Skip to content

Commit

Permalink
ci: use yarn-path for old node
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Jan 16, 2024
1 parent f7fa840 commit 0db1283
Show file tree
Hide file tree
Showing 10 changed files with 1,021 additions and 975 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ jobs:
with:
node-version: ${{ matrix.node }}
cache: yarn
env:
# https://github.com/actions/setup-node/issues/531#issuecomment-1819151412
SKIP_YARN_COREPACK_CHECK: 1

- name: Enable Corepack
run: corepack enable

- name: Install Dependencies
run: yarn --immutable
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ jobs:
with:
node-version: 18
cache: yarn
env:
# https://github.com/actions/setup-node/issues/531#issuecomment-1819151412
SKIP_YARN_COREPACK_CHECK: 1

- name: Enable Corepack
run: corepack enable

- name: Install Dependencies
run: yarn --immutable
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ jobs:
with:
node-version: lts/*
cache: yarn
env:
# https://github.com/actions/setup-node/issues/531#issuecomment-1819151412
SKIP_YARN_COREPACK_CHECK: 1

- name: Enable Corepack
run: corepack enable

- name: Install Dependencies
run: yarn --immutable
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
*.log
/.yarn/*
!/.yarn/plugins
!/.yarn/releases
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
/.yarn
12 changes: 1 addition & 11 deletions .yarn/plugins/plugin-prepare-lifecycle.cjs
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
module.exports = {
name: 'plugin-prepare-lifecycle',
factory: e => ({
hooks: {
afterAllInstalled(r) {
if (!r.topLevelWorkspace.manifest.scripts.get('prepare')) return
e('@yarnpkg/shell').execute('yarn prepare')
},
},
}),
}
module.exports={name:"plugin-prepare-lifecycle",factory:e=>({hooks:{afterAllInstalled(r){if(!r.topLevelWorkspace.manifest.scripts.get("prepare"))return;e("@yarnpkg/shell").execute("yarn prepare")}}})};
55 changes: 55 additions & 0 deletions .yarn/releases/yarn-2.4.3.cjs

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
enableGlobalCache: true

nodeLinker: node-modules

plugins:
- checksum: 37b2361b1502b2054e6779788c0e9bdd6a90ce49852a8cad2feda79b0614ec94f06fb6e78951f5f95429c610d7934dd077caa47413a0227378a102c55161616d
path: .yarn/plugins/plugin-prepare-lifecycle.cjs
- path: .yarn/plugins/plugin-prepare-lifecycle.cjs
spec: 'https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js'

yarnPath: .yarn/releases/yarn-2.4.3.cjs
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"JounQin (https://www.1stG.me) <[email protected]>"
],
"license": "MIT",
"packageManager": "yarn@4.0.2",
"packageManager": "yarn@2.4.3",
"engines": {
"node": ">=10.13"
},
Expand Down Expand Up @@ -63,7 +63,7 @@
"eslint-plugin-prettier": "^4.2.1",
"jest": "^29.7.0",
"mock-fs": "^4.14.0",
"npm-run-all2": "^6.1.1",
"npm-run-all": "^4.1.5",
"prettier": "2.8.8",
"simple-git-hooks": "^2.9.0",
"size-limit": "^11.0.1",
Expand Down
1,897 changes: 955 additions & 942 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 0db1283

Please sign in to comment.