use pnpm in github release

This commit is contained in:
duanfuxiang
2025-04-09 10:14:20 +08:00
parent fb71bf61ac
commit 6aa2a91476
5 changed files with 126 additions and 14781 deletions

View File

@@ -14,10 +14,15 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '20'
- run: npm ci
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Type check
run: npm run type:check
run: pnpm run type:check
- name: Lint check
run: npm run lint:check
run: pnpm run lint:check
- name: Test
run: npm test
run: pnpm test

View File

@@ -22,17 +22,22 @@ jobs:
with:
node-version: 20.x
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Build
id: build
run: |
npm install
npm install js-yaml
npm run build
pnpm install
pnpm add js-yaml
pnpm build
- name: Test
id: test
run: |
npm run test
pnpm test
- name: Get Tag Name
id: get_tag