Skip to content

Commit

Permalink
chore: update to yarn 4 and node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Nov 5, 2023
1 parent 9d1ef13 commit 1735721
Show file tree
Hide file tree
Showing 70 changed files with 363 additions and 714 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/push-renovate-pob_root.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
with:
token: ${{ secrets.GH_TOKEN }}

- name: Enable Corepack
run: corepack enable

- name: Install Dependencies
# no immutable here
run: yarn install
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/push-renovate-prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
with:
token: ${{ secrets.GH_TOKEN }}

- name: Enable Corepack
run: corepack enable

- name: Install Dependencies
run: yarn install --immutable

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ jobs:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
fetch-depth: 0
fetch-depth: 200
fetch-tags: true

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- name: Enable Corepack
run: corepack enable
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ do
# Skip if branch deletion
if [ "$local_sha" != "$z40" ]; then
if [ "$local_ref" = "$branch_ref" ]; then
yarn test --watchAll=false --changedSince=origin/main && yarn run checks
yarn run checks && yarn run lint && yarn test --watchAll=false --changedSince=origin/main
fi
fi
done
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/arg-npm-4.1.3-1748b966a8-070ff801a9.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/yn-npm-3.1.1-8ad4259784-0732468dd7.zip
Binary file not shown.
388 changes: 70 additions & 318 deletions .yarn/plugins/@yarnpkg/plugin-conventional-version.cjs

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ enableGlobalCache: false
enableMessageNames: false
nodeLinker: node-modules
plugins:
- checksum: >-
daf593fe9ebb6ca785ce3618be8b44ccbcfbfac33a23e18615915a04bb44672641902b645c79a6f58315e995048a7a6cc5956cc83712108dc8d25a5b3ccfaa30
- checksum: 351165af3f87af1ec24528ccf2affc93f57694cc7bfc51a1842d8c17e19d4c7275176de471df52f3b462b7fb16615a1961896c3823b68c330317035020e92e40
path: .yarn/plugins/@yarnpkg/plugin-conventional-version.cjs
spec: >-
https://raw.githubusercontent.com/christophehurpeau/yarn-plugin-conventional-version/main/bundles/%40yarnpkg/plugin-conventional-version.cjs
spec: https://raw.githubusercontent.com/christophehurpeau/yarn-plugin-conventional-version/main/bundles/@yarnpkg/plugin-conventional-version.cjs
supportedArchitectures:
cpu:
- x64
Expand Down
27 changes: 14 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"homepage": "https://github.com/christophehurpeau/reviewflow",
"type": "module",
"engines": {
"node": ">=18.12.0"
"node": ">=20.9.0"
},
"packageManager": "yarn@4.0.1",
"main": "./build/index-node18.mjs",
"main": "./build/index-node20.mjs",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./src/index.ts",
"node": {
"import": "./build/index-node18.mjs"
"import": "./build/index-node20.mjs"
}
}
},
Expand Down Expand Up @@ -48,7 +48,8 @@
"babelEnvs": [
{
"target": "node",
"version": "18"
"version": "20",
"omitVersionInFileName": true
}
],
"jsx": true,
Expand All @@ -57,16 +58,16 @@
]
},
"dependencies": {
"@commitlint/config-conventional": "17.8.1",
"@commitlint/lint": "17.8.1",
"@commitlint/parse": "17.8.1",
"@commitlint/config-conventional": "18.1.0",
"@commitlint/lint": "18.1.0",
"@commitlint/parse": "18.1.0",
"@octokit/core": "3.6.0",
"@octokit/rest": "18.12.0",
"@octokit/webhooks": "9.26.0",
"@slack/web-api": "6.9.0",
"@tryfabric/mack": "1.2.1",
"body-parser": "1.20.1",
"conventional-changelog-conventionalcommits": "6.1.0",
"conventional-changelog-conventionalcommits": "7.0.2",
"cookie-parser": "1.4.6",
"delay": "6.0.0",
"dotenv": "8.6.0",
Expand All @@ -84,26 +85,26 @@
"devDependencies": {
"@babel/core": "7.23.2",
"@babel/preset-react": "7.22.15",
"@pob/commitlint-config": "6.0.2",
"@pob/commitlint-config": "6.2.0",
"@pob/eslint-config": "51.1.2",
"@pob/eslint-config-typescript": "51.1.2",
"@pob/eslint-config-typescript-react": "51.1.2",
"@pob/root": "8.4.2",
"@pob/root": "8.6.0",
"@types/body-parser": "1.19.2",
"@types/cookie-parser": "1.4.5",
"@types/express": "4.17.20",
"@types/issue-parser": "3.0.3",
"@types/jest": "29.5.7",
"@types/jsonwebtoken": "9.0.4",
"@types/node": "18.18.8",
"@types/node": "20.8.10",
"@types/react": "18.2.34",
"@types/react-dom": "18.2.14",
"@types/simple-oauth2": "5.0.6",
"check-package-dependencies": "6.8.0",
"eslint": "8.52.0",
"eslint": "8.53.0",
"jest": "29.7.0",
"nock": "13.3.6",
"pob-babel": "36.4.4",
"pob-babel": "36.6.1",
"smee-client": "1.2.3",
"type-fest": "4.6.0",
"typescript": "5.2.2"
Expand Down
3 changes: 2 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": ["config:js-app", "@pob"]
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:js-app", "github>christophehurpeau/renovate-presets"]
}
Loading

0 comments on commit 1735721

Please sign in to comment.