ci(workflows): use pnpm/action-setup in build and release pipelines

Replace the corepack-based pnpm setup with pnpm/action-setup
and pin pnpm to v10.33.0 in the create_dmg, nightly, and
release GitHub Actions workflows.
This commit is contained in:
wenjie 2026-04-14 10:19:06 +08:00
parent 04e99a1264
commit 9ddbd113a3
3 changed files with 18 additions and 9 deletions

View file

@ -23,6 +23,12 @@ jobs:
with: with:
go-version-file: go.mod go-version-file: go.mod
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.33.0
run_install: false
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v6 uses: actions/setup-node@v6
with: with:
@ -30,9 +36,6 @@ jobs:
cache: pnpm cache: pnpm
cache-dependency-path: web/frontend/pnpm-lock.yaml cache-dependency-path: web/frontend/pnpm-lock.yaml
- name: Setup pnpm
run: corepack enable && corepack install
# 3. Build the application bundle # 3. Build the application bundle
- name: Build with Make - name: Build with Make
run: make build ARCH=${{ matrix.arch }} && make build-macos-app ARCH=${{ matrix.arch }} run: make build ARCH=${{ matrix.arch }} && make build-macos-app ARCH=${{ matrix.arch }}

View file

@ -47,6 +47,12 @@ jobs:
with: with:
go-version-file: go.mod go-version-file: go.mod
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.33.0
run_install: false
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v6 uses: actions/setup-node@v6
with: with:
@ -54,9 +60,6 @@ jobs:
cache: pnpm cache: pnpm
cache-dependency-path: web/frontend/pnpm-lock.yaml cache-dependency-path: web/frontend/pnpm-lock.yaml
- name: Setup pnpm
run: corepack enable && corepack install
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v4 uses: docker/setup-qemu-action@v4

View file

@ -65,6 +65,12 @@ jobs:
with: with:
go-version-file: go.mod go-version-file: go.mod
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.33.0
run_install: false
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v6 uses: actions/setup-node@v6
with: with:
@ -72,9 +78,6 @@ jobs:
cache: pnpm cache: pnpm
cache-dependency-path: web/frontend/pnpm-lock.yaml cache-dependency-path: web/frontend/pnpm-lock.yaml
- name: Setup pnpm
run: corepack enable && corepack install
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v4 uses: docker/setup-qemu-action@v4