From cf20a40df2439a97fb9531969ed172251b72acaf Mon Sep 17 00:00:00 2001 From: JiPaix <26584973+JiPaix@users.noreply.github.com> Date: Sat, 22 Oct 2022 18:30:10 +0200 Subject: [PATCH] fix(build): use npm exec instead of npx see https://github.com/electron-userland/electron-builder/issues/6411#issuecomment-966454664 --- .github/workflows/release-beta.yml | 6 +++--- .github/workflows/release.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index b36b7eac1..bd3edac2d 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f572260e5..93280ebda 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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