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:
parent
04e99a1264
commit
9ddbd113a3
3 changed files with 18 additions and 9 deletions
9
.github/workflows/create_dmg.yml
vendored
9
.github/workflows/create_dmg.yml
vendored
|
|
@ -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 }}
|
||||||
|
|
|
||||||
9
.github/workflows/nightly.yml
vendored
9
.github/workflows/nightly.yml
vendored
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue