fix(ci): use pnpm vite build then SWA upload from repo root with langgraph/dist

This commit is contained in:
gongzhiyong
2026-04-10 04:43:02 +08:00
parent 3edeafa062
commit 14a7e79792
+21 -4
View File
@@ -16,13 +16,30 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Node.js 20
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install pnpm
run: corepack enable && corepack prepare pnpm@10 --activate
- name: Install dependencies
working-directory: langgraph
run: pnpm install --frozen-lockfile
- name: Build Vite frontend
working-directory: langgraph
env:
VITE_LANGGRAPH_URL: https://soc-langgraph.jollysand-7f0f231b.southeastasia.azurecontainerapps.io
run: pnpm vite build
- name: Deploy to Azure Static Web Apps - name: Deploy to Azure Static Web Apps
uses: Azure/static-web-apps-deploy@v1 uses: Azure/static-web-apps-deploy@v1
with: with:
azure_static_web_apps_api_token: ${{ secrets.SWA_LANGGRAPH_TOKEN }} azure_static_web_apps_api_token: ${{ secrets.SWA_LANGGRAPH_TOKEN }}
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
action: upload action: upload
app_location: langgraph app_location: /
output_location: dist output_location: langgraph/dist
env: skip_app_build: true
VITE_LANGGRAPH_URL: https://soc-langgraph.jollysand-7f0f231b.southeastasia.azurecontainerapps.io