mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
16 lines
781 B
Diff
16 lines
781 B
Diff
diff --git a/dist/publish.js b/dist/publish.js
|
|
index 09a0c10584159beefa7a915ad92d46601da5ad45..01959c09b98ef8e7b1c2c6c481add782457e6921 100644
|
|
--- a/dist/publish.js
|
|
+++ b/dist/publish.js
|
|
@@ -55,7 +55,9 @@ export async function publish(packages, options) {
|
|
execSync(`git tag ${gitTag}`);
|
|
execSync("git push --tags");
|
|
log.info(`Creating GitHub release notes.`);
|
|
- execSync(`gh release create ${gitTag} --notes '${changelog}'`);
|
|
+ const prerelease = name.startsWith("@auth") ? "--prerelease " : ""
|
|
+ console.log(`Creating GitHub release notes${prerelease ? " (as prerelease)" : ""}`);
|
|
+ execSync(`gh release create ${gitTag} ${prerelease}--notes '${changelog}'`);
|
|
}
|
|
}
|
|
if (dryRun) {
|