@releasekit/publish 0.2.0-next.11 → 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.
@@ -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 versionMatch = tag.match(/(\d+\.\d+\.\d+.*)$/);
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 versionMatch = tag.match(/(\d+\.\d+\.\d+.*)$/);
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
@@ -5,7 +5,7 @@ import {
5
5
  loadConfig,
6
6
  parseInput,
7
7
  runPipeline
8
- } from "./chunk-Y7Y6GQ6R.js";
8
+ } from "./chunk-5SC3AWLC.js";
9
9
 
10
10
  // src/cli.ts
11
11
  import { EXIT_CODES, setJsonMode, setLogLevel } from "@releasekit/core";
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 versionMatch = tag.match(/(\d+\.\d+\.\d+.*)$/);
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
@@ -16,7 +16,7 @@ import {
16
16
  parseInput,
17
17
  runPipeline,
18
18
  updateCargoVersion
19
- } from "./chunk-Y7Y6GQ6R.js";
19
+ } from "./chunk-5SC3AWLC.js";
20
20
  export {
21
21
  BasePublishError,
22
22
  PipelineError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@releasekit/publish",
3
- "version": "0.2.0-next.11",
3
+ "version": "0.2.0-next.12",
4
4
  "description": "Publish packages to npm and crates.io with git tagging and GitHub releases",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",