Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules
build
package-lock.json
.dockerignore
Dockerfile
Dockerfile.prod
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/prod-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,21 @@ jobs:
password: ${{ env.DOCKER_HUB_PASSWORD }}

# Build npm for release
- name: Build npm
- name: Clean and build npm
run: |-
echo "Cleaning node_modules and lock file to avoid native module issues..."
rm -rf node_modules package-lock.json
npm cache clean --force

echo "Installing dependencies..."
npm install
# Build for main distribution

echo "Building for main distribution..."
VITE_BUILD_OUT_DIR=dist npm run build
# Build for specific version

echo "Building for release version: ${{ steps.fetch-latest-release.outputs.tag_name }}"
VITE_BUILD_OUT_DIR=releases/${{ steps.fetch-latest-release.outputs.tag_name }} npm run build

# Commit
- name: Commit to repo
uses: EndBug/add-and-commit@v9.1.4
Expand Down
Loading