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 3760bd3
Show file tree
Hide file tree
Showing 10 changed files with 3,042 additions and 1,716 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
- 14
- 16
- 18
- 20.7
os:
- macos-latest
- windows-latest
Expand All @@ -30,25 +29,15 @@ 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

- name: lint
run: yarn lint
if: matrix.node == '20.7'
- name: Build, Lint and Test
run: yarn run-s build lint test
env:
EFF_NO_LINK_RULES: true
PARSER_NO_WATCH: true

- name: Build and Test
run: yarn run-s build test

- name: Codecov
uses: codecov/codecov-action@v3
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
6 changes: 3 additions & 3 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 @@ -61,9 +61,9 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^27.6.3",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^29.7.0",
"jest": "^26.6.3",
"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
Loading

0 comments on commit 3760bd3

Please sign in to comment.