Skip to content

Commit

Permalink
Add node 22.x to the test matrix
Browse files Browse the repository at this point in the history
Needed to upgrade canvas to a git rev due to Automattic/node-canvas#2377
  • Loading branch information
jcoyne committed Oct 29, 2024
1 parent 3837c10 commit 2fdc042
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v3
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"babel-plugin-macros": "^3.0.1",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"bundlewatch": "^0.4.0",
"canvas": "^2.11.0",
"canvas": "3.0.0-rc2",
"chalk": "^4.1.0",
"core-js": "^3.21.1",
"eslint": "^8.11.0",
Expand Down Expand Up @@ -136,6 +136,9 @@
"webpack-cli": "^5.0.0",
"webpack-dev-server": "^4.7.4"
},
"overrides": {
"canvas": "3.0.0-rc2"
},
"peerDependencies": {
"react": "^18.0.0",
"react-dom": "^18.0.0"
Expand Down

0 comments on commit 2fdc042

Please sign in to comment.