mirror of
https://github.com/idrawjs/idraw
synced 2026-05-23 17:48:23 +00:00
ci: update action scripts
This commit is contained in:
parent
3bebdc472d
commit
4ab2a64d96
4 changed files with 16 additions and 12 deletions
8
.github/workflows/coverage.yml
vendored
8
.github/workflows/coverage.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
8
.github/workflows/node.js.yml
vendored
8
.github/workflows/node.js.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -77,5 +77,9 @@
|
|||
"typescript": "^5.9.2",
|
||||
"typescript-eslint": "^8.42.0",
|
||||
"vite": "^7.1.4"
|
||||
},
|
||||
"engines": {
|
||||
"pnpm": ">=10",
|
||||
"node": ">=24"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue