From 4ab2a64d9648bbd56d12bc6e0587ff5edf3b9420 Mon Sep 17 00:00:00 2001 From: chenshenhai Date: Sat, 6 Sep 2025 13:55:51 +0800 Subject: [PATCH] ci: update action scripts --- .github/workflows/coverage.yml | 8 ++++---- .github/workflows/node.js.yml | 8 ++++---- .github/workflows/release.yml | 8 ++++---- package.json | 4 ++++ 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index d832bb6..a982444 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -15,18 +15,18 @@ jobs: if: github.repository == 'idrawjs/idraw' strategy: matrix: - node-version: [22.x] + node-version: [24.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: ${{ matrix.node-version }} - run: npm config set registry https://registry.yarnpkg.com/ # - run: npm install - - run: npm install --global pnpm + - run: npm install --global pnpm@10 - run: pnpm i - run: npm run beforetest - run: npm run cover diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 532a200..28c9cf3 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -15,18 +15,18 @@ jobs: if: github.repository == 'idrawjs/idraw' strategy: matrix: - node-version: [22.x] + node-version: [24.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: ${{ matrix.node-version }} - run: npm config set registry https://registry.yarnpkg.com/ # - run: npm install - - run: npm install --global pnpm + - run: npm install --global pnpm@10 - run: pnpm i - run: npm run beforetest - run: npm run test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a5f0588..369b5d6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,13 +10,13 @@ jobs: contents: read id-token: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 # Setup .npmrc file to publish to npm - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v5 with: - node-version: '22.x' + node-version: '24.x' registry-url: 'https://registry.npmjs.org' - - run: npm install --global pnpm + - run: npm install --global pnpm@10 - run: pnpm i - run: npm run test - run: npm run build diff --git a/package.json b/package.json index b1fe1dc..7e8b3f0 100644 --- a/package.json +++ b/package.json @@ -77,5 +77,9 @@ "typescript": "^5.9.2", "typescript-eslint": "^8.42.0", "vite": "^7.1.4" + }, + "engines": { + "pnpm": ">=10", + "node": ">=24" } }