From 3425994220c4d7eed26101ff707b0299ba788c7b Mon Sep 17 00:00:00 2001 From: double beep <38133098+double-beep@users.noreply.github.com> Date: Sun, 1 Sep 2024 09:12:03 +0000 Subject: [PATCH] chore: support for Node 22 --- .github/workflows/nodejs.yml | 11 ++++++++--- build.js | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 97c6399..c3d9799 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -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 diff --git a/build.js b/build.js index dd8edb5..16ae9b1 100644 --- a/build.js +++ b/build.js @@ -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 => {