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:
64
64
password : ${{ env.DOCKER_HUB_PASSWORD }}
65
65
66
66
# Build npm for release
67
- - name : Build npm
67
+ - name : Clean and build npm
68
68
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..."
69
74
npm install
70
- # Build for main distribution
75
+
76
+ echo "Building for main distribution..."
71
77
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 }}"
73
80
VITE_BUILD_OUT_DIR=releases/${{ steps.fetch-latest-release.outputs.tag_name }} npm run build
74
-
81
+
75
82
# Commit
76
83
- name : Commit to repo
77
84
You can’t perform that action at this time.
0 commit comments