use pnpm in github release
This commit is contained in:
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user