File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff 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/add-and-commit@v9.1.4
You can’t perform that action at this time.
0 commit comments