diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a48077e0..e4a73772 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -63,7 +63,7 @@ jobs: runs-on: ubuntu-latest if: | !cancelled() - && inputs.docker != false + && (inputs.docker || github.event_name == 'push') && (needs.npm.result == 'success' || needs.npm.result == 'skipped') steps: - name: Checkout Repo @@ -102,7 +102,7 @@ jobs: runs-on: macos-latest if: | !cancelled() - && inputs.electron != false + && (inputs.electron || github.event_name == 'push') && (needs.npm.result == 'success' || needs.npm.result == 'skipped') # strategy: # fail-fast: false @@ -134,7 +134,7 @@ jobs: MAIN_VITE_SENTRY_AUTH_TOKEN: ${{ secrets.MAIN_VITE_SENTRY_AUTH_TOKEN }} CSC_LINK: ${{ secrets.CSC_LINK }} CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} - run: cd packages/electron && pnpm build:mac + run: pnpm build && cd packages/electron && pnpm build:mac - name: Gets latest created release info id: latest_release_info diff --git a/packages/electron/package.json b/packages/electron/package.json index 8b850481..15c5d810 100644 --- a/packages/electron/package.json +++ b/packages/electron/package.json @@ -12,7 +12,7 @@ "start": "electron-vite preview", "dev": "electron-vite dev", "build": "electron-vite build", - "build:mac": "pnpm build && node electron-builder.js" + "build:mac": "node electron-builder.js" }, "dependencies": { "@sentry/electron": "^5.3.0",