From 39ede27a5a558339ef8c276de2be6271cce898cc Mon Sep 17 00:00:00 2001 From: "alpha2phi@gmail.com" Date: Mon, 30 Sep 2024 11:14:15 +0800 Subject: [PATCH] fix: build command --- ...re-static-web-apps-gentle-bush-0a37d5800.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/azure-static-web-apps-gentle-bush-0a37d5800.yml b/.github/workflows/azure-static-web-apps-gentle-bush-0a37d5800.yml index 96fbeab..0acf991 100644 --- a/.github/workflows/azure-static-web-apps-gentle-bush-0a37d5800.yml +++ b/.github/workflows/azure-static-web-apps-gentle-bush-0a37d5800.yml @@ -19,6 +19,22 @@ jobs: with: submodules: true lfs: false + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: 'lts/*' # Specify your node version + cache: 'pnpm' + + - name: Install pnpm + run: npm install -g pnpm + + - name: Install dependencies + run: pnpm install + + - name: Build project + run: pnpm run build + - name: Build And Deploy id: builddeploy uses: Azure/static-web-apps-deploy@v1 @@ -29,7 +45,6 @@ jobs: ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig app_location: "/" # App source code path - app_build_command: "npm -g pnpm && pnpm install && pnpm build" api_location: "" # Api source code path - optional output_location: "dist" # Built app content directory - optional ###### End of Repository/Build Configurations ######