ci: update action scripts

This commit is contained in:
chenshenhai 2025-09-06 13:55:51 +08:00
parent 3bebdc472d
commit 4ab2a64d96
4 changed files with 16 additions and 12 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -77,5 +77,9 @@
"typescript": "^5.9.2",
"typescript-eslint": "^8.42.0",
"vite": "^7.1.4"
},
"engines": {
"pnpm": ">=10",
"node": ">=24"
}
}