@releasekit/publish 0.2.0-next.10 → 0.2.0-next.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-Y7Y6GQ6R.js → chunk-5SC3AWLC.js} +3 -1
- package/dist/cli.cjs +3 -1
- package/dist/cli.js +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -696,7 +696,9 @@ async function runGithubReleaseStage(ctx) {
|
|
|
696
696
|
if (!firstTag) return;
|
|
697
697
|
const tagsToRelease = config.githubRelease.perPackage ? tags : [firstTag];
|
|
698
698
|
for (const tag of tagsToRelease) {
|
|
699
|
-
const
|
|
699
|
+
const MAX_TAG_LENGTH = 1e3;
|
|
700
|
+
const truncatedTag = tag.length > MAX_TAG_LENGTH ? tag.slice(0, MAX_TAG_LENGTH) : tag;
|
|
701
|
+
const versionMatch = truncatedTag.match(/(\d{1,20}\.\d{1,20}\.\d{1,20}(?:[-+.]?[a-zA-Z0-9.-]{0,100})?)$/);
|
|
700
702
|
const version = versionMatch?.[1] ?? "";
|
|
701
703
|
const isPreRel = config.githubRelease.prerelease === "auto" ? version ? isPrerelease(version) : false : config.githubRelease.prerelease;
|
|
702
704
|
const result = {
|
package/dist/cli.cjs
CHANGED
|
@@ -679,7 +679,9 @@ async function runGithubReleaseStage(ctx) {
|
|
|
679
679
|
if (!firstTag) return;
|
|
680
680
|
const tagsToRelease = config.githubRelease.perPackage ? tags : [firstTag];
|
|
681
681
|
for (const tag of tagsToRelease) {
|
|
682
|
-
const
|
|
682
|
+
const MAX_TAG_LENGTH = 1e3;
|
|
683
|
+
const truncatedTag = tag.length > MAX_TAG_LENGTH ? tag.slice(0, MAX_TAG_LENGTH) : tag;
|
|
684
|
+
const versionMatch = truncatedTag.match(/(\d{1,20}\.\d{1,20}\.\d{1,20}(?:[-+.]?[a-zA-Z0-9.-]{0,100})?)$/);
|
|
683
685
|
const version = versionMatch?.[1] ?? "";
|
|
684
686
|
const isPreRel = config.githubRelease.prerelease === "auto" ? version ? isPrerelease(version) : false : config.githubRelease.prerelease;
|
|
685
687
|
const result = {
|
package/dist/cli.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -723,7 +723,9 @@ async function runGithubReleaseStage(ctx) {
|
|
|
723
723
|
if (!firstTag) return;
|
|
724
724
|
const tagsToRelease = config.githubRelease.perPackage ? tags : [firstTag];
|
|
725
725
|
for (const tag of tagsToRelease) {
|
|
726
|
-
const
|
|
726
|
+
const MAX_TAG_LENGTH = 1e3;
|
|
727
|
+
const truncatedTag = tag.length > MAX_TAG_LENGTH ? tag.slice(0, MAX_TAG_LENGTH) : tag;
|
|
728
|
+
const versionMatch = truncatedTag.match(/(\d{1,20}\.\d{1,20}\.\d{1,20}(?:[-+.]?[a-zA-Z0-9.-]{0,100})?)$/);
|
|
727
729
|
const version = versionMatch?.[1] ?? "";
|
|
728
730
|
const isPreRel = config.githubRelease.prerelease === "auto" ? version ? isPrerelease(version) : false : config.githubRelease.prerelease;
|
|
729
731
|
const result = {
|
package/dist/index.js
CHANGED
package/package.json
CHANGED