Skip to content

Commit

Permalink
Only show url message on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Aug 13, 2023
1 parent 5069c30 commit 68b91c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/plugin/github/GitHub.js
Expand Up @@ -337,9 +337,9 @@ class GitHub extends Release {
if (isCI) {
this.setContext({ isReleased: true, releaseUrl: url });
} else {
this.log.log(`\n💡 If your browser does not automatically open the GitHub Release web interface, please manually copy the link and paste it into your browser to proceed: ${url}\n`);
const runningOnWindows = process.platform === 'win32';
await open(url, { wait: runningOnWindows });
const isWindows = process.platform === 'win32';
if (isWindows) this.log.info(`Opening ${url}`);
await open(url, { wait: isWindows });
this.setContext({ isReleased: true, releaseUrl: this.getReleaseUrlFallback(tagName) });
}
}
Expand Down

0 comments on commit 68b91c4

Please sign in to comment.