mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-07 08:06:37 +08:00
ci
This commit is contained in:
@@ -16,6 +16,7 @@ env:
|
|||||||
GO_BUILD_TAGS: embed_frontend
|
GO_BUILD_TAGS: embed_frontend
|
||||||
GO_LDFLAGS: -s -w
|
GO_LDFLAGS: -s -w
|
||||||
NODE_VERSION: "22"
|
NODE_VERSION: "22"
|
||||||
|
PNPM_VERSION: "10.10.0"
|
||||||
FRONTEND_DIR: frontend
|
FRONTEND_DIR: frontend
|
||||||
FRONTEND_BUILD_COMMAND: pnpm build:embed
|
FRONTEND_BUILD_COMMAND: pnpm build:embed
|
||||||
FRONTEND_OUT_DIR: frontend/out
|
FRONTEND_OUT_DIR: frontend/out
|
||||||
@@ -85,6 +86,12 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup pnpm
|
||||||
|
uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: ${{ env.PNPM_VERSION }}
|
||||||
|
run_install: false
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
@@ -92,13 +99,6 @@ jobs:
|
|||||||
cache: pnpm
|
cache: pnpm
|
||||||
cache-dependency-path: ${{ env.FRONTEND_DIR }}/pnpm-lock.yaml
|
cache-dependency-path: ${{ env.FRONTEND_DIR }}/pnpm-lock.yaml
|
||||||
|
|
||||||
- name: Enable pnpm
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
corepack enable
|
|
||||||
corepack prepare pnpm@10.10.0 --activate
|
|
||||||
|
|
||||||
- name: Install frontend dependencies
|
- name: Install frontend dependencies
|
||||||
working-directory: ${{ env.FRONTEND_DIR }}
|
working-directory: ${{ env.FRONTEND_DIR }}
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|||||||
Reference in New Issue
Block a user