@cbnventures/nova 0.41.2 → 0.42.0
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/build/package.json +1 -1
- package/build/src/cli/generate/github/workflows-blueprint.d.ts +2 -1
- package/build/src/cli/generate/github/workflows-blueprint.d.ts.map +1 -1
- package/build/src/cli/generate/github/workflows-blueprint.js +54 -1
- package/build/src/cli/generate/github/workflows-blueprint.js.map +1 -1
- package/build/src/cli/index.js +4 -2
- package/build/src/cli/index.js.map +1 -1
- package/build/src/cli/utility/configure.d.ts +1 -0
- package/build/src/cli/utility/configure.d.ts.map +1 -1
- package/build/src/cli/utility/configure.js +29 -0
- package/build/src/cli/utility/configure.js.map +1 -1
- package/build/src/lib/dotenv.d.ts.map +1 -1
- package/build/src/lib/dotenv.js +2 -8
- package/build/src/lib/dotenv.js.map +1 -1
- package/build/src/lib/env-profiles.d.ts.map +1 -1
- package/build/src/lib/env-profiles.js +2 -1
- package/build/src/lib/env-profiles.js.map +1 -1
- package/build/src/lib/item.d.ts +3 -1
- package/build/src/lib/item.d.ts.map +1 -1
- package/build/src/lib/item.js +13 -0
- package/build/src/lib/item.js.map +1 -1
- package/build/src/rules/vitest/dotenv/register.d.ts.map +1 -1
- package/build/src/rules/vitest/dotenv/register.js +5 -2
- package/build/src/rules/vitest/dotenv/register.js.map +1 -1
- package/build/src/toolkit/bootstrap.d.ts +4 -2
- package/build/src/toolkit/bootstrap.d.ts.map +1 -1
- package/build/src/toolkit/bootstrap.js +56 -4
- package/build/src/toolkit/bootstrap.js.map +1 -1
- package/build/src/types/cli/generate/github/workflows-blueprint.d.ts +33 -2
- package/build/src/types/cli/index.d.ts +4 -0
- package/build/src/types/cli/utility/configure.d.ts +23 -0
- package/build/src/types/lib/item.d.ts +22 -0
- package/build/src/types/rules/vitest/dotenv/register.d.ts +2 -0
- package/build/src/types/tests/cli/generate/github/workflows-blueprint.test.d.ts +31 -0
- package/build/src/types/tests/cli/integration/app-store-connect.test.d.ts +1 -1
- package/build/src/types/tests/cli/utility/configure.test.d.ts +25 -0
- package/build/src/types/tests/rules/vitest/dotenv.test.d.ts +2 -0
- package/build/src/types/tests/toolkit/bootstrap.test.d.ts +61 -0
- package/build/src/types/toolkit/bootstrap.d.ts +50 -0
- package/build/templates/scaffold/app/android/package.json +1 -1
- package/build/templates/scaffold/app/apple/package.json +1 -1
- package/build/templates/scaffold/app/astro/package.json +1 -1
- package/build/templates/scaffold/app/discord-bot/package.json +1 -1
- package/build/templates/scaffold/app/express/package.json +1 -1
- package/build/templates/scaffold/app/nextjs/package.json +1 -1
- package/build/templates/scaffold/app/vite/package.json +1 -1
- package/build/templates/scaffold/docs/docusaurus/package.json +2 -2
- package/build/templates/scaffold/package/github-action/package.json +1 -1
- package/build/templates/scaffold/package/homebridge/package.json +1 -1
- package/build/templates/scaffold/package/pfsense/package.json +1 -1
- package/build/templates/scaffold-options/tool/serverless/cloudflare-workers/package.json +1 -1
- package/build/templates/scaffold-options/tool/serverless/vercel-functions/package.json +1 -1
- package/package.json +1 -1
package/build/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Cli_Generate_Github_WorkflowsBlueprint_Runner_AppBuildValues_AppPath, Cli_Generate_Github_WorkflowsBlueprint_Runner_AppBuildValues_Environment, Cli_Generate_Github_WorkflowsBlueprint_Runner_AppBuildValues_ProfileAware, Cli_Generate_Github_WorkflowsBlueprint_Runner_AppBuildValues_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_AppRuntimeValues_AppPath, Cli_Generate_Github_WorkflowsBlueprint_Runner_AppRuntimeValues_Environment, Cli_Generate_Github_WorkflowsBlueprint_Runner_AppRuntimeValues_ProfileAware, Cli_Generate_Github_WorkflowsBlueprint_Runner_AppRuntimeValues_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildCheckSponsorGatedIssues_Entry, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildCheckSponsorGatedIssues_Environment, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildCheckSponsorGatedIssues_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildCloudflarePagesTarget_Context, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildCloudflarePagesTarget_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildCloudflareWorkersTarget_Context, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildCloudflareWorkersTarget_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildDockerHubTarget_Context, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildDockerHubTarget_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildGhcrTarget_Context, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildGhcrTarget_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildGithubActionTarget_Context, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildGithubActionTarget_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildGithubPackagesTarget_Context, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildGithubPackagesTarget_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildGithubPagesTarget_Context, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildGithubPagesTarget_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildIssueCommentTrigger_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildIssuesTrigger_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildLockInactiveIssues_Entry, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildLockInactiveIssues_Environment, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildLockInactiveIssues_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildNpmTarget_Context, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildNpmTarget_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPfsenseTarget_Context, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPfsenseTarget_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPublish_Artifacts, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPublish_DockerHub, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPublish_Entry, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPublish_Environment, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPublish_ImageWorkspaces, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPublish_PackageManager, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPublish_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPublish_Siblings, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPublish_WorkspaceGraph, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPublish_Workspaces, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPushTrigger_Branches, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPushTrigger_Paths, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPushTrigger_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildReleaseTrigger_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildScheduleDailyTrigger_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildScheduleMonthlyTrigger_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildScheduleWeeklyTrigger_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildTagPushTrigger_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildTagPushTrigger_Tags, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildVercelNextjsTarget_Context, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildVercelNextjsTarget_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildWorkflowRunTrigger_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildWorkflowRunTrigger_Workflows, Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_Artifacts, Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_DockerHub, Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_Entry, Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_Environment, Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_ImageWorkspaces, Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_PackageManager, Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_Siblings, Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_WorkspaceGraph, Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_Workspaces, Cli_Generate_Github_WorkflowsBlueprint_Runner_EmitRuntimeSyncStep_Options, Cli_Generate_Github_WorkflowsBlueprint_Runner_EmitRuntimeSyncStep_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_Generate_Options, Cli_Generate_Github_WorkflowsBlueprint_Runner_Generate_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_Serialize_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_Serialize_Workflow } from '../../../types/cli/generate/github/workflows-blueprint.d.ts';
|
|
1
|
+
import type { Cli_Generate_Github_WorkflowsBlueprint_Runner_AppBuildValues_AppPath, Cli_Generate_Github_WorkflowsBlueprint_Runner_AppBuildValues_Environment, Cli_Generate_Github_WorkflowsBlueprint_Runner_AppBuildValues_ProfileAware, Cli_Generate_Github_WorkflowsBlueprint_Runner_AppBuildValues_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_AppRuntimeValues_AppPath, Cli_Generate_Github_WorkflowsBlueprint_Runner_AppRuntimeValues_Environment, Cli_Generate_Github_WorkflowsBlueprint_Runner_AppRuntimeValues_ProfileAware, Cli_Generate_Github_WorkflowsBlueprint_Runner_AppRuntimeValues_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildCheckSponsorGatedIssues_Entry, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildCheckSponsorGatedIssues_Environment, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildCheckSponsorGatedIssues_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildCloudflarePagesTarget_Context, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildCloudflarePagesTarget_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildCloudflareWorkersTarget_Context, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildCloudflareWorkersTarget_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildDockerHubTarget_Context, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildDockerHubTarget_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildGhcrTarget_Context, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildGhcrTarget_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildGithubActionTarget_Context, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildGithubActionTarget_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildGithubPackagesTarget_Context, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildGithubPackagesTarget_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildGithubPagesTarget_Context, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildGithubPagesTarget_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildIssueCommentTrigger_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildIssuesTrigger_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildLockInactiveIssues_Entry, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildLockInactiveIssues_Environment, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildLockInactiveIssues_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildNpmTarget_Context, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildNpmTarget_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPfsenseTarget_Context, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPfsenseTarget_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPreReleaseRefExpression_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPreReleaseRefExpression_TagPatterns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPublish_Artifacts, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPublish_DockerHub, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPublish_Entry, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPublish_Environment, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPublish_ImageWorkspaces, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPublish_PackageManager, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPublish_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPublish_Siblings, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPublish_WorkspaceGraph, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPublish_Workspaces, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPushTrigger_Branches, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPushTrigger_Paths, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPushTrigger_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildReleaseTrigger_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildScheduleDailyTrigger_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildScheduleMonthlyTrigger_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildScheduleWeeklyTrigger_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildTagPushTrigger_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildTagPushTrigger_Tags, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildVercelNextjsTarget_Context, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildVercelNextjsTarget_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildWorkflowRunTrigger_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildWorkflowRunTrigger_Workflows, Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_Artifacts, Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_DockerHub, Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_Entry, Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_Environment, Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_ImageWorkspaces, Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_PackageManager, Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_Siblings, Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_WorkspaceGraph, Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_Workspaces, Cli_Generate_Github_WorkflowsBlueprint_Runner_EmitRuntimeSyncStep_Options, Cli_Generate_Github_WorkflowsBlueprint_Runner_EmitRuntimeSyncStep_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_Generate_Options, Cli_Generate_Github_WorkflowsBlueprint_Runner_Generate_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_Serialize_Returns, Cli_Generate_Github_WorkflowsBlueprint_Runner_Serialize_Workflow } from '../../../types/cli/generate/github/workflows-blueprint.d.ts';
|
|
2
2
|
export declare class Runner {
|
|
3
3
|
static generate(options: Cli_Generate_Github_WorkflowsBlueprint_Runner_Generate_Options): Cli_Generate_Github_WorkflowsBlueprint_Runner_Generate_Returns;
|
|
4
4
|
static dispatch(entry: Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_Entry, workspaces: Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_Workspaces, environment?: Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_Environment, siblings?: Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_Siblings, packageManager?: Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_PackageManager, artifacts?: Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_Artifacts, dockerHub?: Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_DockerHub, workspaceGraph?: Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_WorkspaceGraph, imageWorkspaces?: Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_ImageWorkspaces): Cli_Generate_Github_WorkflowsBlueprint_Runner_Dispatch_Returns;
|
|
@@ -9,6 +9,7 @@ export declare class Runner {
|
|
|
9
9
|
private static buildCloudflareEnvironmentSelectionStep;
|
|
10
10
|
private static buildCloudflareEnvironmentPreflight;
|
|
11
11
|
static buildReleaseTrigger(): Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildReleaseTrigger_Returns;
|
|
12
|
+
static buildPreReleaseRefExpression(tagPatterns: Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPreReleaseRefExpression_TagPatterns): Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPreReleaseRefExpression_Returns;
|
|
12
13
|
static buildTagPushTrigger(tags?: Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildTagPushTrigger_Tags): Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildTagPushTrigger_Returns;
|
|
13
14
|
static buildPushTrigger(branches: Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPushTrigger_Branches, paths?: Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPushTrigger_Paths): Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildPushTrigger_Returns;
|
|
14
15
|
static buildWorkflowRunTrigger(workflows: Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildWorkflowRunTrigger_Workflows): Cli_Generate_Github_WorkflowsBlueprint_Runner_BuildWorkflowRunTrigger_Returns;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows-blueprint.d.ts","sourceRoot":"","sources":["../../../../../src/cli/generate/github/workflows-blueprint.ts"],"names":[],"mappings":"AA2CA,OAAO,KAAK,EACV,oEAAoE,EAEpE,wEAAwE,EAExE,yEAAyE,EAEzE,oEAAoE,EAGpE,sEAAsE,EACtE,0EAA0E,EAE1E,2EAA2E,EAE3E,sEAAsE,EAUtE,gFAAgF,EAEhF,sFAAsF,EAKtF,kFAAkF,EAuClF,gFAAgF,EAIhF,gFAAgF,EAKhF,kFAAkF,EASlF,kFAAkF,EAmClF,0EAA0E,EAQ1E,0EAA0E,EAI1E,qEAAqE,EAGrE,qEAAqE,EASrE,6EAA6E,EAO7E,6EAA6E,EAO7E,+EAA+E,EAG/E,+EAA+E,EAI/E,4EAA4E,EAI5E,4EAA4E,EAI5E,8EAA8E,EAC9E,wEAAwE,EAExE,2EAA2E,EAE3E,iFAAiF,EAKjF,6EAA6E,EAS7E,oEAAoE,EAIpE,oEAAoE,EAMpE,wEAAwE,EAQxE,wEAAwE,
|
|
1
|
+
{"version":3,"file":"workflows-blueprint.d.ts","sourceRoot":"","sources":["../../../../../src/cli/generate/github/workflows-blueprint.ts"],"names":[],"mappings":"AA2CA,OAAO,KAAK,EACV,oEAAoE,EAEpE,wEAAwE,EAExE,yEAAyE,EAEzE,oEAAoE,EAGpE,sEAAsE,EACtE,0EAA0E,EAE1E,2EAA2E,EAE3E,sEAAsE,EAUtE,gFAAgF,EAEhF,sFAAsF,EAKtF,kFAAkF,EAuClF,gFAAgF,EAIhF,gFAAgF,EAKhF,kFAAkF,EASlF,kFAAkF,EAmClF,0EAA0E,EAQ1E,0EAA0E,EAI1E,qEAAqE,EAGrE,qEAAqE,EASrE,6EAA6E,EAO7E,6EAA6E,EAO7E,+EAA+E,EAG/E,+EAA+E,EAI/E,4EAA4E,EAI5E,4EAA4E,EAI5E,8EAA8E,EAC9E,wEAAwE,EAExE,2EAA2E,EAE3E,iFAAiF,EAKjF,6EAA6E,EAS7E,oEAAoE,EAIpE,oEA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;IAmEnX,OAAO,CAAC,MAAM,CAAC,WAAW;IAuC1B,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAkBjC,OAAO,CAAC,MAAM,CAAC,kBAAkB;WA0BnB,kBAAkB,IAAI,wEAAwE;WAoB9F,wBAAwB,IAAI,8EAA8E;WAoB1G,0BAA0B,IAAI,gFAAgF;WAiB9G,yBAAyB,IAAI,+EAA+E;WAiB5G,2BAA2B,IAAI,iFAAiF;IAmB9H,OAAO,CAAC,MAAM,CAAC,eAAe;IAwB9B,OAAO,CAAC,MAAM,CAAC,WAAW;IA2H1B,OAAO,CAAC,MAAM,CAAC,oBAAoB;IA0BnC,OAAO,CAAC,MAAM,CAAC,YAAY;IA2B3B,OAAO,CAAC,MAAM,CAAC,aAAa;IAgJ5B,OAAO,CAAC,MAAM,CAAC,cAAc;IA2B7B,OAAO,CAAC,MAAM,CAAC,YAAY;IA8C3B,OAAO,CAAC,MAAM,CAAC,aAAa;IAsC5B,OAAO,CAAC,MAAM,CAAC,eAAe;IA2B9B,OAAO,CAAC,MAAM,CAAC,KAAK;IAkBpB,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAwBhC,OAAO,CAAC,MAAM,CAAC,0BAA0B;IA6BzC,OAAO,CAAC,MAAM,CAAC,IAAI;IAwBnB,OAAO,CAAC,MAAM,CAAC,wBAAwB;IA8BvC,OAAO,CAAC,MAAM,CAAC,qBAAqB;IA+CpC,OAAO,CAAC,MAAM,CAAC,2BAA2B;IAqC1C,OAAO,CAAC,MAAM,CAAC,mBAAmB;IA0BlC,OAAO,CAAC,MAAM,CAAC,MAAM;IAsBrB,OAAO,CAAC,MAAM,CAAC,kBAAkB;CAYlC"}
|
|
@@ -524,11 +524,11 @@ export class Runner {
|
|
|
524
524
|
const on = [];
|
|
525
525
|
const publishConditionParts = [];
|
|
526
526
|
const runNameParts = [];
|
|
527
|
+
const pushTagPatterns = [];
|
|
527
528
|
const triggers = entry['triggers'];
|
|
528
529
|
const targets = entry['deploy'] ?? [];
|
|
529
530
|
const environmentSelection = entry['environmentSelection'];
|
|
530
531
|
const profileAware = environmentSelection !== undefined;
|
|
531
|
-
const selectedEnvironmentExpression = 'github.event_name == \'workflow_dispatch\' && (inputs.environment || \'staging\') || github.event_name == \'release\' && github.event.release.prerelease && \'staging\' || github.event_name == \'release\' && \'production\' || \'from tag\'';
|
|
532
532
|
const hasContainerTarget = targets.some((target) => target['to'] === 'docker-hub' || target['to'] === 'ghcr');
|
|
533
533
|
const hasPfsenseTarget = targets.some((target) => target['to'] === 'pfsense');
|
|
534
534
|
const containerPlatforms = entry['containerPlatforms'] ?? [
|
|
@@ -572,6 +572,7 @@ export class Runner {
|
|
|
572
572
|
if (triggerName === 'tag-push') {
|
|
573
573
|
const tagPushTags = (typeof trigger === 'string') ? undefined : trigger['tags'];
|
|
574
574
|
on.push(Runner.buildTagPushTrigger(tagPushTags));
|
|
575
|
+
pushTagPatterns.push(...(tagPushTags ?? ['v*']));
|
|
575
576
|
publishConditionParts.push('github.event_name == \'push\' && startsWith(github.ref, \'refs/tags/\')');
|
|
576
577
|
runNameParts.push('github.event_name == \'push\' && startsWith(github.ref, \'refs/tags/\') && github.ref_name');
|
|
577
578
|
}
|
|
@@ -682,6 +683,8 @@ export class Runner {
|
|
|
682
683
|
...runNameParts.map((part) => ((part.includes('&&') === true) ? `(${part})` : part)),
|
|
683
684
|
'\'manually\'',
|
|
684
685
|
].join(' || ');
|
|
686
|
+
const preReleaseRefExpression = Runner.buildPreReleaseRefExpression(pushTagPatterns);
|
|
687
|
+
const selectedEnvironmentExpression = `github.event_name == 'workflow_dispatch' && (inputs.environment || 'staging') || github.event_name == 'release' && github.event.release.prerelease && 'staging' || github.event_name == 'release' && 'production' || github.event_name == 'push' && ((${preReleaseRefExpression}) && 'staging' || 'production') || 'from tag'`;
|
|
685
688
|
const runNameEnvironmentSuffix = (profileAware === true) ? ` [${Runner.expr(selectedEnvironmentExpression)}]` : '';
|
|
686
689
|
const runName = `Publishing ${Runner.expr(runNameLabel)}${workflowId}${runNameEnvironmentSuffix}\${{ github.event_name == 'workflow_dispatch' && inputs.dry-run && ' (dry run)' || '' }}`;
|
|
687
690
|
const workflowSettings = entry['with'];
|
|
@@ -1171,6 +1174,56 @@ export class Runner {
|
|
|
1171
1174
|
types: ['published'],
|
|
1172
1175
|
};
|
|
1173
1176
|
}
|
|
1177
|
+
static buildPreReleaseRefExpression(tagPatterns) {
|
|
1178
|
+
const globCharacters = [
|
|
1179
|
+
'*',
|
|
1180
|
+
'?',
|
|
1181
|
+
'[',
|
|
1182
|
+
'+',
|
|
1183
|
+
];
|
|
1184
|
+
const digits = [
|
|
1185
|
+
'0',
|
|
1186
|
+
'1',
|
|
1187
|
+
'2',
|
|
1188
|
+
'3',
|
|
1189
|
+
'4',
|
|
1190
|
+
'5',
|
|
1191
|
+
'6',
|
|
1192
|
+
'7',
|
|
1193
|
+
'8',
|
|
1194
|
+
'9',
|
|
1195
|
+
];
|
|
1196
|
+
const leftCharacters = [
|
|
1197
|
+
...digits,
|
|
1198
|
+
'.',
|
|
1199
|
+
];
|
|
1200
|
+
const prefixes = [];
|
|
1201
|
+
for (const tagPattern of tagPatterns) {
|
|
1202
|
+
if (tagPattern.startsWith('!') === true) {
|
|
1203
|
+
continue;
|
|
1204
|
+
}
|
|
1205
|
+
let prefix = '';
|
|
1206
|
+
for (const character of tagPattern) {
|
|
1207
|
+
if (globCharacters.includes(character) === true) {
|
|
1208
|
+
break;
|
|
1209
|
+
}
|
|
1210
|
+
prefix += character;
|
|
1211
|
+
}
|
|
1212
|
+
prefixes.push(prefix);
|
|
1213
|
+
}
|
|
1214
|
+
const terms = [];
|
|
1215
|
+
const pending = digits.map((digit) => `${digit}-`);
|
|
1216
|
+
while (pending.length > 0) {
|
|
1217
|
+
const term = pending.shift() ?? '';
|
|
1218
|
+
const collides = prefixes.some((prefix) => prefix.includes(term));
|
|
1219
|
+
if (collides === false) {
|
|
1220
|
+
terms.push(term);
|
|
1221
|
+
continue;
|
|
1222
|
+
}
|
|
1223
|
+
pending.unshift(...leftCharacters.map((leftCharacter) => `${leftCharacter}${term}`));
|
|
1224
|
+
}
|
|
1225
|
+
return terms.map((term) => `contains(github.ref_name, '${term}')`).join(' || ');
|
|
1226
|
+
}
|
|
1174
1227
|
static buildTagPushTrigger(tags = ['v*']) {
|
|
1175
1228
|
return {
|
|
1176
1229
|
event: 'push',
|