Skip to content

Commit

Permalink
deps: update node-canvas, Node, actions, + npm audit fix (#115)
Browse files Browse the repository at this point in the history
deps: update `node-canvas`, Node, + `npm audit fix`

- update `node-canvas` to latest v3 to work with newer, non-EoL Node versions
  - also less deps like `node-pre-gyp` etc
- update CI matrix to use LTS Node 18+
- update `actions/checkout` and `actions/setup-node` to use non-EoL Node runtimes as well
  - the primary breaking change in updating [both to their](https://github.com/actions/checkout/releases/tag/v4.0.0) [respective v4 releases](https://github.com/actions/setup-node/releases/tag/v4.0.0) is the Node runtime update
- run `npm audit fix` after
  • Loading branch information
agilgur5 authored Dec 31, 2024
1 parent ec4e365 commit cf5b7c8
Show file tree
Hide file tree
Showing 3 changed files with 2,887 additions and 2,828 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# TODO: add back Node 18 once node-canvas is properly supported: https://github.com/Automattic/node-canvas/issues/2025
node-version: [16.x] # LTS Node: https://nodejs.org/en/about/releases/
node-version: [18.x, 20.x, 22.x] # LTS Node: https://nodejs.org/en/about/releases/
os: [ubuntu-latest]

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand Down
Loading

0 comments on commit cf5b7c8

Please sign in to comment.