Skip to content

Commit

Permalink
fix: unable to open the browser automatically on Windows system (#1019)
Browse files Browse the repository at this point in the history
* fix: unable to open the browser automatically on Windows system (#1017, #808)

Fixes #1017, #808
  • Loading branch information
13OnTheCode committed Aug 13, 2023
1 parent b0c076a commit 5069c30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/plugin/github/GitHub.js
Expand Up @@ -337,7 +337,9 @@ class GitHub extends Release {
if (isCI) {
this.setContext({ isReleased: true, releaseUrl: url });
} else {
await open(url);
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 });
this.setContext({ isReleased: true, releaseUrl: this.getReleaseUrlFallback(tagName) });
}
}
Expand Down

0 comments on commit 5069c30

Please sign in to comment.