Skip to content

Commit d1a365c

Browse files
committed
refactor: Update FrontendRelease workflow to install sharp package and remove dev dependencies
1 parent f2bc5f2 commit d1a365c

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/FrontendRelease.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,27 @@ jobs:
2828
run: yarn install --frozen-lockfile
2929
working-directory: ./apps/frontend
3030

31+
- name: Install sharp package for Next.js
32+
run: yarn add sharp
33+
working-directory: ./apps/frontend
34+
35+
- name: Remove dev dependencies
36+
run: yarn install --production
37+
working-directory: ./apps/frontend
38+
3139
- name: Build the app
3240
run: yarn workspace frontend build
3341
working-directory: ./apps/frontend
3442

3543
- name: Deploy to Azure Static Web Apps
3644
uses: Azure/static-web-apps-deploy@v1
45+
id: deploy
3746
with:
3847
action: "upload"
3948
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BLACK_WAVE_0F9BACA10 }}
4049
repo_token: ${{ secrets.GITHUB_TOKEN }}
4150
api_location: "" # Azure location where your API is deployed
42-
app_location: "./apps/frontend" # Where the codebase is located
43-
output_location: ".next" # The directory where the build output is generated
51+
app_location: "./apps/frontend/.next" # Where the codebase is located
52+
output_location: "" # The directory where the build output is generated
4453
skip_app_build: true
4554
skip_api_build: true

0 commit comments

Comments
 (0)