Skip to content

Commit

Permalink
fix(build): use npm exec instead of npx
Browse files Browse the repository at this point in the history
  • Loading branch information
JiPaix committed Oct 22, 2022
1 parent d385364 commit cf20a40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ jobs:
run: |
npm run build
if [ "$RUNNER_OS" == "Linux" ];
npx --no-install electron-builder --linux --publish always --config .electron-builder.config.js
npm exec electron-builder --config=.electron-builder.config.js --publish=always --linux
elif [ "$RUNNER_OS" == "Windows" ]; then
npx --no-install electron-builder --win32 --publish always --config .electron-builder.config.js
npm exec electron-builder --config=.electron-builder.config.js --publish=always --win32
elif [ "$RUNNER_OS" == "macOS" ]; then
npx --no-install electron-builder --mac --publish always --config .electron-builder.config.js
npm exec electron-builder --config=.electron-builder.config.js --publish=always --macos
else
echo "$RUNNER_OS not supported"
exit 1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ jobs:
run: |
npm run build
if [ "$RUNNER_OS" == "Linux" ];
npx --no-install electron-builder --linux --publish always --config .electron-builder.config.js
npm exec electron-builder --config=.electron-builder.config.js --publish=always --linux
elif [ "$RUNNER_OS" == "Windows" ]; then
npx --no-install electron-builder --win32 --publish always --config .electron-builder.config.js
npm exec electron-builder --config=.electron-builder.config.js --publish=always --win32
elif [ "$RUNNER_OS" == "macOS" ]; then
npx --no-install electron-builder --mac --publish always --config .electron-builder.config.js
npm exec electron-builder --config=.electron-builder.config.js --publish=always --macos
else
echo "$RUNNER_OS not supported"
exit 1
Expand Down

0 comments on commit cf20a40

Please sign in to comment.