Skip to content

Commit

Permalink
chore: support for Node 22
Browse files Browse the repository at this point in the history
  • Loading branch information
double-beep authored Sep 1, 2024
1 parent ca7e040 commit 3425994
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,20 @@ on: [push, pull_request]

jobs:
build:

name: Build on Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 2
matrix:
node: [ 20, 22 ]

steps:
- uses: actions/checkout@v4
- name: Using Node 20
- name: Using Node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: 20
node-version: ${{ matrix.node }}
- name: Update npm version to latest
run: npm install -g npm@latest # shop showing warnings about the lockfile
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { build } from 'esbuild';
import info from './package.json' assert { type: 'json' };
import info from './package.json' with { type: 'json' };

const svgsNeeded = ['Checkmark', 'Clear', 'EyeOff', 'Flag', 'Pencil', 'Trash', 'Plus'];
const svgsUrls = svgsNeeded.map(svgName => {
Expand Down

0 comments on commit 3425994

Please sign in to comment.