From 70f0f191d208c8cb273a645ef35202f4070bbdd4 Mon Sep 17 00:00:00 2001 From: mashbean Date: Fri, 15 May 2026 14:37:00 +0800 Subject: [PATCH] chore: support node 24 --- .github/workflows/publish.yml | 10 +++++----- .github/workflows/test.yml | 13 ++++++++----- .npmrc | 1 - package-lock.json | 6 +++--- package.json | 4 ++-- 5 files changed, 18 insertions(+), 16 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b2b78332..5d14cd93 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,20 +18,20 @@ jobs: uses: actions/checkout@master - name: Setup Node.js - uses: actions/setup-node@v2.1.4 + uses: actions/setup-node@v4 with: - node-version: '18.19' + node-version: '24' registry-url: 'https://registry.npmjs.org' always-auth: true - name: Cache Dependencies id: cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + key: ${{ runner.os }}-node24-${{ hashFiles('**/package-lock.json') }} restore-keys: | - ${{ runner.os }}-node- + ${{ runner.os }}-node24- - name: Install Dependencies run: npm ci diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 71b1ed81..036c9e8a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,25 +11,28 @@ on: jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + node-version: ['18.19', '24'] steps: - name: Checkout Repo uses: actions/checkout@master - name: Setup Node.js - uses: actions/setup-node@v2.1.4 + uses: actions/setup-node@v4 with: - node-version: '18.19' + node-version: ${{ matrix.node-version }} registry-url: 'https://registry.npmjs.org' always-auth: true - name: Cache Dependencies id: cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + key: ${{ runner.os }}-node${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }} restore-keys: | - ${{ runner.os }}-node- + ${{ runner.os }}-node${{ matrix.node-version }}- - name: Install Dependencies run: npm ci diff --git a/.npmrc b/.npmrc index 5fba9204..521a9f7c 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1 @@ -unsafe-perm=true legacy-peer-deps=true diff --git a/package-lock.json b/package-lock.json index 448d92e5..37a8f333 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@matters/matters-editor", - "version": "0.3.1-alpha.1", + "version": "0.3.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@matters/matters-editor", - "version": "0.3.1-alpha.1", + "version": "0.3.2", "license": "MIT", "dependencies": { "@tiptap/core": "2.8.0", @@ -93,7 +93,7 @@ "vitest": "^2.0.4" }, "engines": { - "node": ">=18.19 <19.0" + "node": ">=18.19 <25.0.0" }, "peerDependencies": { "react": ">=17.0.0", diff --git a/package.json b/package.json index 18961367..0a8c86e3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@matters/matters-editor", - "version": "0.3.1", + "version": "0.3.2", "description": "Editor for matters.news", "author": "https://github.com/thematters", "homepage": "https://github.com/thematters/matters-editor", @@ -9,7 +9,7 @@ "url": "git@github.com:thematters/matters-editor.git" }, "engines": { - "node": ">=18.19 <19.0" + "node": ">=18.19 <25.0.0" }, "license": "MIT", "type": "module",