diff --git a/dist/main.js b/dist/main.js index c6cc7d2..969bc32 100644 --- a/dist/main.js +++ b/dist/main.js @@ -82803,7 +82803,7 @@ var getOptions = () => { ), micromambaVersion: parseOrUndefined( "micromamba-version", - unionType([literalType("latest"), stringType().regex(/^\d+\.\d+\.\d+-\d+$/)]), + unionType([literalType("latest"), stringType().regex(/^\d+\.\d+\.\d+(?:\.(?:rc|alpha|beta)\d+)?-\d+$/)]), "micromamba-version must be either `latest` or a version matching `1.2.3-0`." ), micromambaUrl: parseOrUndefined("micromamba-url", stringType().url()), diff --git a/dist/post.js b/dist/post.js index 9eaf0b6..ad352a0 100644 --- a/dist/post.js +++ b/dist/post.js @@ -81846,7 +81846,7 @@ var getOptions = () => { ), micromambaVersion: parseOrUndefined( "micromamba-version", - unionType([literalType("latest"), stringType().regex(/^\d+\.\d+\.\d+-\d+$/)]), + unionType([literalType("latest"), stringType().regex(/^\d+\.\d+\.\d+(?:\.(?:rc|alpha|beta)\d+)?-\d+$/)]), "micromamba-version must be either `latest` or a version matching `1.2.3-0`." ), micromambaUrl: parseOrUndefined("micromamba-url", stringType().url()), diff --git a/src/options.ts b/src/options.ts index df08a1b..7c568af 100644 --- a/src/options.ts +++ b/src/options.ts @@ -295,7 +295,7 @@ export const getOptions = () => { ), micromambaVersion: parseOrUndefined( 'micromamba-version', - z.union([z.literal('latest'), z.string().regex(/^\d+\.\d+\.\d+-\d+$/)]), + z.union([z.literal('latest'), z.string().regex(/^\d+\.\d+\.\d+(?:\.(?:rc|alpha|beta)\d+)?-\d+$/)]), 'micromamba-version must be either `latest` or a version matching `1.2.3-0`.' ), micromambaUrl: parseOrUndefined('micromamba-url', z.string().url()),