Skip to content

Commit

Permalink
breaking: Drop Node.js v16 support. Requires >= v18.12. (#172)
Browse files Browse the repository at this point in the history
* Update deps.

* Update ci.

* Add engines.

* Fix pr.

* Revert.
  • Loading branch information
milesj authored Nov 19, 2024
1 parent b7a85b9 commit 8af1353
Show file tree
Hide file tree
Showing 8 changed files with 1,097 additions and 648 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18, 20]
node-version: [18, 20, 22]
fail-fast: true
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn
node-version: ${{ matrix.node-version }}
Expand All @@ -27,8 +27,8 @@ jobs:
name: Pack
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn
- run: yarn install --immutable
Expand Down Expand Up @@ -68,8 +68,8 @@ jobs:
- zh-hant
fail-fast: true
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn
- run: yarn install --immutable
Expand All @@ -81,8 +81,8 @@ jobs:
name: Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn
- run: yarn install --immutable
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ jobs:
name: Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn
node-version: 20
- run: yarn install --immutable
- run: yarn run build
- name: Add key to allow access to repository
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ jobs:
name: Conventional Title
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn
- uses: beemojs/conventional-pr-action@v2
- uses: beemojs/conventional-pr-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"jest": "^29.7.0",
"jest-preset-moon": "^3.0.2",
"lerna": "^8.1.3",
"packemon": "^3.2.2",
"packemon": "^4.1.1",
"prettier": "^3.3.1",
"prettier-config-moon": "^1.1.2",
"tsconfig-moon": "^1.3.0",
Expand Down
3 changes: 3 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,8 @@
"lib"
],
"platform": "browser"
},
"engines": {
"node": ">=18.12.0"
}
}
2 changes: 1 addition & 1 deletion packages/generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@
"platform": "node"
},
"engines": {
"node": ">=16.12.0"
"node": ">=18.12.0"
}
}
2 changes: 1 addition & 1 deletion packages/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
"platform": "node"
},
"engines": {
"node": ">=16.12.0"
"node": ">=18.12.0"
}
}
Loading

0 comments on commit 8af1353

Please sign in to comment.