Skip to content

Commit

Permalink
fix building electron when not published
Browse files Browse the repository at this point in the history
  • Loading branch information
CNimmo16 committed Jan 6, 2025
1 parent cdb9ae2 commit 3faa4e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ jobs:
env:
PUBLISHED_PACKAGES: ${{needs.npm.outputs.publishedPackages}}
with:
result-encoding: string
script: |
const publishedPackages = JSON.parse(process.env.PUBLISHED_PACKAGES);
const clientPackage = publishedPackages.find((pkg) => pkg.name === '@quory/client');
if (!clientPackage) {
return null;
return '';
}
console.info(`Found published client version: ${clientPackage.version}`);
return clientPackage.version;
Expand All @@ -63,7 +64,7 @@ jobs:
electron:
needs: determine-client-version

if: needs.determine-client-version.outputs.publishedClientVersion
if: needs.determine-client-version.outputs.publishedClientVersion != ''

name: Build and distribute Electron packages for Mac, Windows and Linux

Expand Down

0 comments on commit 3faa4e6

Please sign in to comment.