create-typescript-app 2.9.1 → 2.9.3
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/lib/base.d.ts +11 -21
- package/lib/base.js +9 -9
- package/lib/blocks/actions/resolveUses.d.ts +6 -0
- package/lib/blocks/actions/resolveUses.js +26 -0
- package/lib/blocks/blockAllContributors.d.ts +4 -0
- package/lib/blocks/blockAllContributors.js +14 -2
- package/lib/blocks/blockAreTheTypesWrong.d.ts +4 -0
- package/lib/blocks/blockCSpell.d.ts +4 -0
- package/lib/blocks/blockCTATransitions.d.ts +4 -0
- package/lib/blocks/blockCTATransitions.js +12 -3
- package/lib/blocks/blockCodecov.d.ts +4 -0
- package/lib/blocks/blockCodecov.js +7 -2
- package/lib/blocks/blockContributingDocs.d.ts +4 -0
- package/lib/blocks/blockContributorCovenant.d.ts +4 -0
- package/lib/blocks/blockDevelopmentDocs.d.ts +4 -0
- package/lib/blocks/blockESLint.d.ts +4 -0
- package/lib/blocks/blockESLintComments.d.ts +4 -0
- package/lib/blocks/blockESLintJSDoc.d.ts +4 -0
- package/lib/blocks/blockESLintJSONC.d.ts +4 -0
- package/lib/blocks/blockESLintMarkdown.d.ts +4 -0
- package/lib/blocks/blockESLintMoreStyling.d.ts +4 -0
- package/lib/blocks/blockESLintNode.d.ts +4 -0
- package/lib/blocks/blockESLintPackageJson.d.ts +4 -0
- package/lib/blocks/blockESLintPerfectionist.d.ts +4 -0
- package/lib/blocks/blockESLintRegexp.d.ts +4 -0
- package/lib/blocks/blockESLintYML.d.ts +4 -0
- package/lib/blocks/blockExampleFiles.d.ts +4 -0
- package/lib/blocks/blockFunding.d.ts +4 -0
- package/lib/blocks/blockGitHubActionsCI.d.ts +4 -0
- package/lib/blocks/blockGitHubActionsCI.js +45 -24
- package/lib/blocks/blockGitHubApps.d.ts +4 -0
- package/lib/blocks/blockGitHubIssueTemplates.d.ts +4 -0
- package/lib/blocks/blockGitHubPRTemplate.d.ts +4 -0
- package/lib/blocks/blockGitignore.d.ts +4 -0
- package/lib/blocks/blockKnip.d.ts +4 -0
- package/lib/blocks/blockMITLicense.d.ts +4 -0
- package/lib/blocks/blockMarkdownlint.d.ts +4 -0
- package/lib/blocks/blockNvmrc.d.ts +4 -0
- package/lib/blocks/blockPRCompliance.d.ts +4 -0
- package/lib/blocks/blockPRCompliance.js +7 -2
- package/lib/blocks/blockPackageJson.d.ts +4 -0
- package/lib/blocks/blockPnpmDedupe.d.ts +4 -0
- package/lib/blocks/blockPrettier.d.ts +4 -0
- package/lib/blocks/blockPrettierPluginCurly.d.ts +4 -0
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts +4 -0
- package/lib/blocks/blockPrettierPluginSh.d.ts +4 -0
- package/lib/blocks/blockREADME.d.ts +4 -0
- package/lib/blocks/blockReleaseIt.d.ts +4 -0
- package/lib/blocks/blockReleaseIt.js +24 -4
- package/lib/blocks/blockRemoveDependencies.d.ts +4 -0
- package/lib/blocks/blockRemoveFiles.d.ts +4 -0
- package/lib/blocks/blockRenovate.d.ts +4 -0
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts +4 -0
- package/lib/blocks/blockRepositoryLabels.d.ts +4 -0
- package/lib/blocks/blockRepositorySecrets.d.ts +4 -0
- package/lib/blocks/blockRepositorySettings.d.ts +4 -0
- package/lib/blocks/blockSecurityDocs.d.ts +4 -0
- package/lib/blocks/blockTSup.d.ts +4 -0
- package/lib/blocks/blockTemplatedWith.d.ts +4 -0
- package/lib/blocks/blockTypeScript.d.ts +4 -0
- package/lib/blocks/blockVSCode.d.ts +4 -0
- package/lib/blocks/blockVitest.d.ts +4 -0
- package/lib/blocks/files/createMultiWorkflowFile.d.ts +5 -1
- package/lib/blocks/files/createMultiWorkflowFile.js +7 -2
- package/lib/blocks/files/formatYaml.js +2 -1
- package/lib/blocks/files/removeUsesQuotes.d.ts +3 -0
- package/lib/blocks/files/removeUsesQuotes.js +9 -0
- package/lib/blocks/index.d.ts +172 -0
- package/lib/data/packageData.d.ts +2 -1
- package/lib/index.d.ts +15 -1
- package/lib/inputs/inputFromDirectory.d.ts +8 -0
- package/lib/inputs/inputFromDirectory.js +13 -0
- package/lib/options/readWorkflowsVersions.d.ts +7 -0
- package/lib/options/readWorkflowsVersions.js +66 -0
- package/lib/presets/common.d.ts +10 -0
- package/lib/presets/everything.d.ts +10 -0
- package/lib/presets/index.d.ts +30 -0
- package/lib/presets/minimal.d.ts +10 -0
- package/lib/schemas.d.ts +57 -0
- package/lib/schemas.js +20 -0
- package/lib/template.d.ts +10 -0
- package/package.json +2 -1
|
@@ -55,6 +55,10 @@ declare const blockKnip: bingo_stratum.BlockWithAddons<{
|
|
|
55
55
|
rulesetId?: string | undefined;
|
|
56
56
|
usage?: string | undefined;
|
|
57
57
|
version?: string | undefined;
|
|
58
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
59
|
+
pinned?: boolean | undefined;
|
|
60
|
+
hash?: string | undefined;
|
|
61
|
+
}>> | undefined;
|
|
58
62
|
}>;
|
|
59
63
|
|
|
60
64
|
export { blockKnip };
|
|
@@ -53,6 +53,10 @@ declare const blockMITLicense: bingo_stratum.BlockWithoutAddons<{
|
|
|
53
53
|
rulesetId?: string | undefined;
|
|
54
54
|
usage?: string | undefined;
|
|
55
55
|
version?: string | undefined;
|
|
56
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
57
|
+
pinned?: boolean | undefined;
|
|
58
|
+
hash?: string | undefined;
|
|
59
|
+
}>> | undefined;
|
|
56
60
|
}>;
|
|
57
61
|
|
|
58
62
|
export { blockMITLicense };
|
|
@@ -55,6 +55,10 @@ declare const blockMarkdownlint: bingo_stratum.BlockWithAddons<{
|
|
|
55
55
|
rulesetId?: string | undefined;
|
|
56
56
|
usage?: string | undefined;
|
|
57
57
|
version?: string | undefined;
|
|
58
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
59
|
+
pinned?: boolean | undefined;
|
|
60
|
+
hash?: string | undefined;
|
|
61
|
+
}>> | undefined;
|
|
58
62
|
}>;
|
|
59
63
|
|
|
60
64
|
export { blockMarkdownlint };
|
|
@@ -53,6 +53,10 @@ declare const blockNvmrc: bingo_stratum.BlockWithoutAddons<{
|
|
|
53
53
|
rulesetId?: string | undefined;
|
|
54
54
|
usage?: string | undefined;
|
|
55
55
|
version?: string | undefined;
|
|
56
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
57
|
+
pinned?: boolean | undefined;
|
|
58
|
+
hash?: string | undefined;
|
|
59
|
+
}>> | undefined;
|
|
56
60
|
}>;
|
|
57
61
|
|
|
58
62
|
export { blockNvmrc };
|
|
@@ -53,6 +53,10 @@ declare const blockPRCompliance: bingo_stratum.BlockWithoutAddons<{
|
|
|
53
53
|
rulesetId?: string | undefined;
|
|
54
54
|
usage?: string | undefined;
|
|
55
55
|
version?: string | undefined;
|
|
56
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
57
|
+
pinned?: boolean | undefined;
|
|
58
|
+
hash?: string | undefined;
|
|
59
|
+
}>> | undefined;
|
|
56
60
|
}>;
|
|
57
61
|
|
|
58
62
|
export { blockPRCompliance };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { base } from "../base.js";
|
|
2
|
+
import { resolveUses } from "./actions/resolveUses.js";
|
|
2
3
|
import { createSoloWorkflowFile } from "./files/createSoloWorkflowFile.js";
|
|
3
4
|
const blockPRCompliance = base.createBlock({
|
|
4
5
|
about: {
|
|
5
6
|
name: "PR Compliance"
|
|
6
7
|
},
|
|
7
|
-
produce() {
|
|
8
|
+
produce({ options }) {
|
|
8
9
|
return {
|
|
9
10
|
files: {
|
|
10
11
|
".github": {
|
|
@@ -22,7 +23,11 @@ const blockPRCompliance = base.createBlock({
|
|
|
22
23
|
},
|
|
23
24
|
steps: [
|
|
24
25
|
{
|
|
25
|
-
uses:
|
|
26
|
+
uses: resolveUses(
|
|
27
|
+
"mtfoley/pr-compliance-action",
|
|
28
|
+
"main",
|
|
29
|
+
options.workflowsVersions
|
|
30
|
+
),
|
|
26
31
|
with: {
|
|
27
32
|
"body-auto-close": false,
|
|
28
33
|
"ignore-authors": [
|
|
@@ -130,6 +130,10 @@ declare const blockPackageJson: bingo_stratum.BlockWithAddons<{
|
|
|
130
130
|
rulesetId?: string | undefined;
|
|
131
131
|
usage?: string | undefined;
|
|
132
132
|
version?: string | undefined;
|
|
133
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
134
|
+
pinned?: boolean | undefined;
|
|
135
|
+
hash?: string | undefined;
|
|
136
|
+
}>> | undefined;
|
|
133
137
|
}>;
|
|
134
138
|
|
|
135
139
|
export { blockPackageJson };
|
|
@@ -53,6 +53,10 @@ declare const blockPnpmDedupe: bingo_stratum.BlockWithoutAddons<{
|
|
|
53
53
|
rulesetId?: string | undefined;
|
|
54
54
|
usage?: string | undefined;
|
|
55
55
|
version?: string | undefined;
|
|
56
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
57
|
+
pinned?: boolean | undefined;
|
|
58
|
+
hash?: string | undefined;
|
|
59
|
+
}>> | undefined;
|
|
56
60
|
}>;
|
|
57
61
|
|
|
58
62
|
export { blockPnpmDedupe };
|
|
@@ -62,6 +62,10 @@ declare const blockPrettier: bingo_stratum.BlockWithAddons<{
|
|
|
62
62
|
rulesetId?: string | undefined;
|
|
63
63
|
usage?: string | undefined;
|
|
64
64
|
version?: string | undefined;
|
|
65
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
66
|
+
pinned?: boolean | undefined;
|
|
67
|
+
hash?: string | undefined;
|
|
68
|
+
}>> | undefined;
|
|
65
69
|
}>;
|
|
66
70
|
|
|
67
71
|
export { blockPrettier };
|
|
@@ -53,6 +53,10 @@ declare const blockPrettierPluginCurly: bingo_stratum.BlockWithoutAddons<{
|
|
|
53
53
|
rulesetId?: string | undefined;
|
|
54
54
|
usage?: string | undefined;
|
|
55
55
|
version?: string | undefined;
|
|
56
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
57
|
+
pinned?: boolean | undefined;
|
|
58
|
+
hash?: string | undefined;
|
|
59
|
+
}>> | undefined;
|
|
56
60
|
}>;
|
|
57
61
|
|
|
58
62
|
export { blockPrettierPluginCurly };
|
|
@@ -53,6 +53,10 @@ declare const blockPrettierPluginPackageJson: bingo_stratum.BlockWithoutAddons<{
|
|
|
53
53
|
rulesetId?: string | undefined;
|
|
54
54
|
usage?: string | undefined;
|
|
55
55
|
version?: string | undefined;
|
|
56
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
57
|
+
pinned?: boolean | undefined;
|
|
58
|
+
hash?: string | undefined;
|
|
59
|
+
}>> | undefined;
|
|
56
60
|
}>;
|
|
57
61
|
|
|
58
62
|
export { blockPrettierPluginPackageJson };
|
|
@@ -53,6 +53,10 @@ declare const blockPrettierPluginSh: bingo_stratum.BlockWithoutAddons<{
|
|
|
53
53
|
rulesetId?: string | undefined;
|
|
54
54
|
usage?: string | undefined;
|
|
55
55
|
version?: string | undefined;
|
|
56
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
57
|
+
pinned?: boolean | undefined;
|
|
58
|
+
hash?: string | undefined;
|
|
59
|
+
}>> | undefined;
|
|
56
60
|
}>;
|
|
57
61
|
|
|
58
62
|
export { blockPrettierPluginSh };
|
|
@@ -57,6 +57,10 @@ declare const blockREADME: bingo_stratum.BlockWithAddons<{
|
|
|
57
57
|
rulesetId?: string | undefined;
|
|
58
58
|
usage?: string | undefined;
|
|
59
59
|
version?: string | undefined;
|
|
60
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
61
|
+
pinned?: boolean | undefined;
|
|
62
|
+
hash?: string | undefined;
|
|
63
|
+
}>> | undefined;
|
|
60
64
|
}>;
|
|
61
65
|
|
|
62
66
|
export { blockREADME };
|
|
@@ -53,6 +53,10 @@ declare const blockReleaseIt: bingo_stratum.BlockWithoutAddons<{
|
|
|
53
53
|
rulesetId?: string | undefined;
|
|
54
54
|
usage?: string | undefined;
|
|
55
55
|
version?: string | undefined;
|
|
56
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
57
|
+
pinned?: boolean | undefined;
|
|
58
|
+
hash?: string | undefined;
|
|
59
|
+
}>> | undefined;
|
|
56
60
|
}>;
|
|
57
61
|
|
|
58
62
|
export { blockReleaseIt };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { base } from "../base.js";
|
|
2
2
|
import { getPackageDependencies } from "../data/packageData.js";
|
|
3
|
+
import { resolveUses } from "./actions/resolveUses.js";
|
|
3
4
|
import { blockCSpell } from "./blockCSpell.js";
|
|
4
5
|
import { blockPackageJson } from "./blockPackageJson.js";
|
|
5
6
|
import { blockRemoveDependencies } from "./blockRemoveDependencies.js";
|
|
@@ -60,12 +61,23 @@ const blockReleaseIt = base.createBlock({
|
|
|
60
61
|
"pull-requests": "write"
|
|
61
62
|
},
|
|
62
63
|
steps: [
|
|
63
|
-
{
|
|
64
|
+
{
|
|
65
|
+
uses: resolveUses(
|
|
66
|
+
"actions/checkout",
|
|
67
|
+
"v4",
|
|
68
|
+
options.workflowsVersions
|
|
69
|
+
),
|
|
70
|
+
with: { "fetch-depth": 0 }
|
|
71
|
+
},
|
|
64
72
|
{
|
|
65
73
|
run: `echo "npm_version=$(npm pkg get version | tr -d '"')" >> "$GITHUB_ENV"`
|
|
66
74
|
},
|
|
67
75
|
{
|
|
68
|
-
uses:
|
|
76
|
+
uses: resolveUses(
|
|
77
|
+
"apexskier/github-release-commenter",
|
|
78
|
+
"v1",
|
|
79
|
+
options.workflowsVersions
|
|
80
|
+
),
|
|
69
81
|
with: {
|
|
70
82
|
"comment-template": `
|
|
71
83
|
:tada: This is included in version {release_link} :tada:
|
|
@@ -98,7 +110,11 @@ const blockReleaseIt = base.createBlock({
|
|
|
98
110
|
},
|
|
99
111
|
steps: [
|
|
100
112
|
{
|
|
101
|
-
uses:
|
|
113
|
+
uses: resolveUses(
|
|
114
|
+
"actions/checkout",
|
|
115
|
+
"v4",
|
|
116
|
+
options.workflowsVersions
|
|
117
|
+
),
|
|
102
118
|
with: {
|
|
103
119
|
"fetch-depth": 0,
|
|
104
120
|
ref: "main",
|
|
@@ -116,7 +132,11 @@ const blockReleaseIt = base.createBlock({
|
|
|
116
132
|
GITHUB_TOKEN: "${{ secrets.ACCESS_TOKEN }}",
|
|
117
133
|
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
|
|
118
134
|
},
|
|
119
|
-
uses:
|
|
135
|
+
uses: resolveUses(
|
|
136
|
+
"JoshuaKGoldberg/release-it-action",
|
|
137
|
+
"v0.2.2",
|
|
138
|
+
options.workflowsVersions
|
|
139
|
+
)
|
|
120
140
|
}
|
|
121
141
|
]
|
|
122
142
|
})
|
|
@@ -55,6 +55,10 @@ declare const blockRemoveDependencies: bingo_stratum.BlockWithAddons<{
|
|
|
55
55
|
rulesetId?: string | undefined;
|
|
56
56
|
usage?: string | undefined;
|
|
57
57
|
version?: string | undefined;
|
|
58
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
59
|
+
pinned?: boolean | undefined;
|
|
60
|
+
hash?: string | undefined;
|
|
61
|
+
}>> | undefined;
|
|
58
62
|
}>;
|
|
59
63
|
|
|
60
64
|
export { blockRemoveDependencies };
|
|
@@ -55,6 +55,10 @@ declare const blockRemoveFiles: bingo_stratum.BlockWithAddons<{
|
|
|
55
55
|
rulesetId?: string | undefined;
|
|
56
56
|
usage?: string | undefined;
|
|
57
57
|
version?: string | undefined;
|
|
58
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
59
|
+
pinned?: boolean | undefined;
|
|
60
|
+
hash?: string | undefined;
|
|
61
|
+
}>> | undefined;
|
|
58
62
|
}>;
|
|
59
63
|
|
|
60
64
|
export { blockRemoveFiles };
|
|
@@ -53,6 +53,10 @@ declare const blockRenovate: bingo_stratum.BlockWithoutAddons<{
|
|
|
53
53
|
rulesetId?: string | undefined;
|
|
54
54
|
usage?: string | undefined;
|
|
55
55
|
version?: string | undefined;
|
|
56
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
57
|
+
pinned?: boolean | undefined;
|
|
58
|
+
hash?: string | undefined;
|
|
59
|
+
}>> | undefined;
|
|
56
60
|
}>;
|
|
57
61
|
|
|
58
62
|
export { blockRenovate };
|
|
@@ -55,6 +55,10 @@ declare const blockRepositoryBranchRuleset: bingo_stratum.BlockWithAddons<{
|
|
|
55
55
|
rulesetId?: string | undefined;
|
|
56
56
|
usage?: string | undefined;
|
|
57
57
|
version?: string | undefined;
|
|
58
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
59
|
+
pinned?: boolean | undefined;
|
|
60
|
+
hash?: string | undefined;
|
|
61
|
+
}>> | undefined;
|
|
58
62
|
}>;
|
|
59
63
|
|
|
60
64
|
export { blockRepositoryBranchRuleset };
|
|
@@ -53,6 +53,10 @@ declare const blockRepositoryLabels: bingo_stratum.BlockWithoutAddons<{
|
|
|
53
53
|
rulesetId?: string | undefined;
|
|
54
54
|
usage?: string | undefined;
|
|
55
55
|
version?: string | undefined;
|
|
56
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
57
|
+
pinned?: boolean | undefined;
|
|
58
|
+
hash?: string | undefined;
|
|
59
|
+
}>> | undefined;
|
|
56
60
|
}>;
|
|
57
61
|
|
|
58
62
|
export { blockRepositoryLabels };
|
|
@@ -58,6 +58,10 @@ declare const blockRepositorySecrets: bingo_stratum.BlockWithAddons<{
|
|
|
58
58
|
rulesetId?: string | undefined;
|
|
59
59
|
usage?: string | undefined;
|
|
60
60
|
version?: string | undefined;
|
|
61
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
62
|
+
pinned?: boolean | undefined;
|
|
63
|
+
hash?: string | undefined;
|
|
64
|
+
}>> | undefined;
|
|
61
65
|
}>;
|
|
62
66
|
|
|
63
67
|
export { blockRepositorySecrets };
|
|
@@ -53,6 +53,10 @@ declare const blockRepositorySettings: bingo_stratum.BlockWithoutAddons<{
|
|
|
53
53
|
rulesetId?: string | undefined;
|
|
54
54
|
usage?: string | undefined;
|
|
55
55
|
version?: string | undefined;
|
|
56
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
57
|
+
pinned?: boolean | undefined;
|
|
58
|
+
hash?: string | undefined;
|
|
59
|
+
}>> | undefined;
|
|
56
60
|
}>;
|
|
57
61
|
|
|
58
62
|
export { blockRepositorySettings };
|
|
@@ -53,6 +53,10 @@ declare const blockSecurityDocs: bingo_stratum.BlockWithoutAddons<{
|
|
|
53
53
|
rulesetId?: string | undefined;
|
|
54
54
|
usage?: string | undefined;
|
|
55
55
|
version?: string | undefined;
|
|
56
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
57
|
+
pinned?: boolean | undefined;
|
|
58
|
+
hash?: string | undefined;
|
|
59
|
+
}>> | undefined;
|
|
56
60
|
}>;
|
|
57
61
|
|
|
58
62
|
export { blockSecurityDocs };
|
|
@@ -56,6 +56,10 @@ declare const blockTSup: bingo_stratum.BlockWithAddons<{
|
|
|
56
56
|
rulesetId?: string | undefined;
|
|
57
57
|
usage?: string | undefined;
|
|
58
58
|
version?: string | undefined;
|
|
59
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
60
|
+
pinned?: boolean | undefined;
|
|
61
|
+
hash?: string | undefined;
|
|
62
|
+
}>> | undefined;
|
|
59
63
|
}>;
|
|
60
64
|
|
|
61
65
|
export { blockTSup };
|
|
@@ -53,6 +53,10 @@ declare const blockTemplatedWith: bingo_stratum.BlockWithoutAddons<{
|
|
|
53
53
|
rulesetId?: string | undefined;
|
|
54
54
|
usage?: string | undefined;
|
|
55
55
|
version?: string | undefined;
|
|
56
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
57
|
+
pinned?: boolean | undefined;
|
|
58
|
+
hash?: string | undefined;
|
|
59
|
+
}>> | undefined;
|
|
56
60
|
}>;
|
|
57
61
|
|
|
58
62
|
export { blockTemplatedWith };
|
|
@@ -53,6 +53,10 @@ declare const blockTypeScript: bingo_stratum.BlockWithoutAddons<{
|
|
|
53
53
|
rulesetId?: string | undefined;
|
|
54
54
|
usage?: string | undefined;
|
|
55
55
|
version?: string | undefined;
|
|
56
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
57
|
+
pinned?: boolean | undefined;
|
|
58
|
+
hash?: string | undefined;
|
|
59
|
+
}>> | undefined;
|
|
56
60
|
}>;
|
|
57
61
|
|
|
58
62
|
export { blockTypeScript };
|
|
@@ -62,6 +62,10 @@ declare const blockVSCode: bingo_stratum.BlockWithAddons<{
|
|
|
62
62
|
rulesetId?: string | undefined;
|
|
63
63
|
usage?: string | undefined;
|
|
64
64
|
version?: string | undefined;
|
|
65
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
66
|
+
pinned?: boolean | undefined;
|
|
67
|
+
hash?: string | undefined;
|
|
68
|
+
}>> | undefined;
|
|
65
69
|
}>;
|
|
66
70
|
|
|
67
71
|
export { blockVSCode };
|
|
@@ -68,6 +68,10 @@ declare const blockVitest: bingo_stratum.BlockWithAddons<{
|
|
|
68
68
|
rulesetId?: string | undefined;
|
|
69
69
|
usage?: string | undefined;
|
|
70
70
|
version?: string | undefined;
|
|
71
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
72
|
+
pinned?: boolean | undefined;
|
|
73
|
+
hash?: string | undefined;
|
|
74
|
+
}>> | undefined;
|
|
71
75
|
}>;
|
|
72
76
|
|
|
73
77
|
export { blockVitest };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { WorkflowsVersions } from '../../schemas.js';
|
|
2
|
+
import 'zod';
|
|
3
|
+
|
|
1
4
|
interface MultiWorkflowFileOptions {
|
|
2
5
|
jobs: MultiWorkflowJobOptions[];
|
|
3
6
|
name: string;
|
|
7
|
+
workflowsVersions: undefined | WorkflowsVersions;
|
|
4
8
|
}
|
|
5
9
|
interface MultiWorkflowJobOptions {
|
|
6
10
|
checkoutWith?: Record<string, string>;
|
|
@@ -15,6 +19,6 @@ type MultiWorkflowJobStep = {
|
|
|
15
19
|
} | {
|
|
16
20
|
uses: string;
|
|
17
21
|
});
|
|
18
|
-
declare function createMultiWorkflowFile({ jobs, name, }: MultiWorkflowFileOptions): string;
|
|
22
|
+
declare function createMultiWorkflowFile({ jobs, name, workflowsVersions, }: MultiWorkflowFileOptions): string;
|
|
19
23
|
|
|
20
24
|
export { type MultiWorkflowFileOptions, type MultiWorkflowJobOptions, type MultiWorkflowJobStep, createMultiWorkflowFile };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { resolveUses } from "../actions/resolveUses.js";
|
|
1
2
|
import { createJobName } from "./createJobName.js";
|
|
2
3
|
import { formatWorkflowYaml } from "./formatWorkflowYaml.js";
|
|
3
4
|
function createMultiWorkflowFile({
|
|
4
5
|
jobs,
|
|
5
|
-
name
|
|
6
|
+
name,
|
|
7
|
+
workflowsVersions
|
|
6
8
|
}) {
|
|
7
9
|
return formatWorkflowYaml({
|
|
8
10
|
jobs: Object.fromEntries(
|
|
@@ -13,7 +15,10 @@ function createMultiWorkflowFile({
|
|
|
13
15
|
name: job.name,
|
|
14
16
|
"runs-on": "ubuntu-latest",
|
|
15
17
|
steps: [
|
|
16
|
-
{
|
|
18
|
+
{
|
|
19
|
+
uses: resolveUses("actions/checkout", "v4", workflowsVersions),
|
|
20
|
+
with: job.checkoutWith
|
|
21
|
+
},
|
|
17
22
|
{ uses: "./.github/actions/prepare" },
|
|
18
23
|
...job.steps
|
|
19
24
|
]
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import jsYaml from "js-yaml";
|
|
2
|
+
import { removeUsesQuotes } from "./removeUsesQuotes.js";
|
|
2
3
|
const options = {
|
|
3
4
|
lineWidth: -1,
|
|
4
5
|
noCompatMode: true,
|
|
@@ -15,7 +16,7 @@ const options = {
|
|
|
15
16
|
}
|
|
16
17
|
};
|
|
17
18
|
function formatYaml(value) {
|
|
18
|
-
return jsYaml.dump(value, options);
|
|
19
|
+
return removeUsesQuotes(jsYaml.dump(value, options));
|
|
19
20
|
}
|
|
20
21
|
export {
|
|
21
22
|
formatYaml
|