Skip to content

Commit db0e901

Browse files
chore(workflow): update production deployment workflow
1 parent aaa6270 commit db0e901

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/prod-build.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,21 @@ jobs:
6464
password: ${{ env.DOCKER_HUB_PASSWORD }}
6565

6666
# Build npm for release
67-
- name: Build npm
67+
- name: Clean and build npm
6868
run: |-
69+
echo "Cleaning node_modules and lock file to avoid native module issues..."
70+
rm -rf node_modules package-lock.json
71+
npm cache clean --force
72+
73+
echo "Installing dependencies..."
6974
npm install
70-
# Build for main distribution
75+
76+
echo "Building for main distribution..."
7177
VITE_BUILD_OUT_DIR=dist npm run build
72-
# Build for specific version
78+
79+
echo "Building for release version: ${{ steps.fetch-latest-release.outputs.tag_name }}"
7380
VITE_BUILD_OUT_DIR=releases/${{ steps.fetch-latest-release.outputs.tag_name }} npm run build
74-
81+
7582
# Commit
7683
- name: Commit to repo
7784
uses: EndBug/[email protected]

0 commit comments

Comments
 (0)