Skip to content

Commit

Permalink
fix: Add npm rebuild command to fix sharp dependency
Browse files Browse the repository at this point in the history
issue
  • Loading branch information
dogukanoksuz committed Dec 7, 2023
1 parent 8113fc1 commit 1f573e5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
- name: Build Next application
run: |
npm ci --ignore-build
npm rebuild --arch=x64 --platform=linux --libc=musl sharp
npm run build
[ "$GITHUB_REF" == "refs/heads/master" ] && PRERELEASE=false || PRERELEASE=true
Expand Down Expand Up @@ -74,4 +75,4 @@ jobs:
/tmp/liman-website-${{ github.run_number }}.rpm
name: "Release ${{ env.UI_BRANCH }} ${{ github.run_number }}"
tag_name: "release.${{ env.UI_BRANCH }}.${{ github.run_number }}"
prerelease: ${{ env.PRERELEASE }}
prerelease: ${{ env.PRERELEASE }}
2 changes: 1 addition & 1 deletion build/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ StartLimitIntervalSec=0
Type=simple
Restart=always
RestartSec=1
User=liman
Environment=NEXT_SHARP_PATH=/liman/website/node_modules/sharp
WorkingDirectory=/liman/website
ExecStart=/usr/bin/node server.js
Expand Down
2 changes: 1 addition & 1 deletion build/rhel/website.spec
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ StartLimitIntervalSec=0
Type=simple
Restart=always
RestartSec=1
User=liman
Environment=NEXT_SHARP_PATH=/liman/website/node_modules/sharp
WorkingDirectory=/liman/website
ExecStart=/usr/bin/node server.js

Expand Down

0 comments on commit 1f573e5

Please sign in to comment.