Skip to content

Commit

Permalink
migrate towards yarn v4 (#919)
Browse files Browse the repository at this point in the history
  • Loading branch information
xobotyi authored Nov 25, 2024
1 parent 8c7427a commit ea6338a
Show file tree
Hide file tree
Showing 5 changed files with 9,960 additions and 7,774 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: 'Enable corepack'
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: 'yarn'

- uses: bahmutov/npm-install@v1
with:
useRollingCache: true
install-command: yarn --frozen-lockfile
- name: Install dependencies
run: yarn install --immutable

- name: "Lint"
run: yarn lint -f @react-hookz/gha .
Expand Down Expand Up @@ -56,15 +56,12 @@ jobs:
uses: actions/checkout@v4
with:
ref: "master"

- name: 'Enable corepack'
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20

- uses: bahmutov/npm-install@v1
with:
useRollingCache: true
install-command: yarn --frozen-lockfile
node-version: 22
cache: 'yarn'

- name: "Release"
id: "release"
Expand Down
15 changes: 13 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
/.idea
node_modules
.idea

yarn-error.log
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

/coverage
/node_modules
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"semantic-release": "^24.2.0",
"yarn": "^1.22.22"
"semantic-release": "^24.2.0"
},
"scripts": {
"prepare": "husky install",
Expand All @@ -81,5 +80,6 @@
"@semantic-release/git",
"@semantic-release/github"
]
}
},
"packageManager": "yarn@4.5.3"
}
Loading

0 comments on commit ea6338a

Please sign in to comment.