@patronage/factory-ci 0.1.1 → 0.1.2
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/README.md +3 -3
- package/dist/index.d.ts +13 -13
- package/dist/index.js +12 -12
- package/package.json +1 -1
- package/src/actions.ts +12 -12
- package/src/index.ts +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ The admission rule is **upstream on repetition**: nothing enters this package un
|
|
|
21
21
|
```ts
|
|
22
22
|
import {
|
|
23
23
|
factoryWorkflow,
|
|
24
|
-
|
|
24
|
+
NODE_PNPM_ACTION_FAMILY_NODE24,
|
|
25
25
|
} from "@patronage/factory-ci";
|
|
26
26
|
```
|
|
27
27
|
|
|
@@ -31,11 +31,11 @@ import {
|
|
|
31
31
|
- `setupSteps`: checkout → pnpm → Node → install, customizable by named role
|
|
32
32
|
- `writeOptions`: the provenance banner and `pinDeps: false`, ready to spread into gagen's `writeOrLint`
|
|
33
33
|
|
|
34
|
-
Every action is validated as `owner/repo@<full sha>`, with its release tag kept separately. A complete `actionFamily` is required; there is no default that could silently move a consumer between action majors. `
|
|
34
|
+
Every action is validated as `owner/repo@<full sha>`, with its release tag kept separately. A complete `actionFamily` is required; there is no default that could silently move a consumer between action majors. `NODE_PNPM_ACTION_FAMILY_NODE24` is the canonical family whose checkout, Node setup, and pnpm setup actions all declare a Node 24 JavaScript runtime.
|
|
35
35
|
|
|
36
36
|
```ts
|
|
37
37
|
const generated = factoryWorkflow({
|
|
38
|
-
actionFamily:
|
|
38
|
+
actionFamily: NODE_PNPM_ACTION_FAMILY_NODE24,
|
|
39
39
|
additionalActions: {
|
|
40
40
|
pathsFilter: {
|
|
41
41
|
tag: "v3",
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* impossible: regenerating a workflow can no longer move a pin.
|
|
12
12
|
*
|
|
13
13
|
* `uses` is a bare `owner/repo@<sha>` string, safe to hand straight to a
|
|
14
|
-
* gagen step. The tag lives in its own field rather than as a `#
|
|
14
|
+
* gagen step. The tag lives in its own field rather than as a `# v7.0.1`
|
|
15
15
|
* suffix on `uses`, because a `#` inside a YAML scalar forces quoting and
|
|
16
16
|
* gagen's pin pass reads the value with `\S+` — the two together corrupt the
|
|
17
17
|
* emitted `uses:` line. gagen writes the `# <tag>` comment itself.
|
|
@@ -30,25 +30,25 @@ interface NodePnpmActionFamily {
|
|
|
30
30
|
readonly setupPnpm: PinnedAction;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
* The
|
|
33
|
+
* The canonical Node 24 family shared by factory-project workflows.
|
|
34
34
|
*
|
|
35
35
|
* Consumers must pass this (or their own complete family) to
|
|
36
|
-
* `factoryWorkflow`; there is deliberately no implicit default.
|
|
37
|
-
*
|
|
36
|
+
* `factoryWorkflow`; there is deliberately no implicit default. Every action
|
|
37
|
+
* in this family declares `runs.using: node24` at the named release.
|
|
38
38
|
*/
|
|
39
|
-
declare const
|
|
39
|
+
declare const NODE_PNPM_ACTION_FAMILY_NODE24: {
|
|
40
40
|
readonly checkout: {
|
|
41
|
-
readonly tag: "
|
|
42
|
-
readonly uses: "actions/checkout@
|
|
41
|
+
readonly tag: "v7.0.1";
|
|
42
|
+
readonly uses: "actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1";
|
|
43
43
|
};
|
|
44
|
-
readonly id: "node-pnpm-
|
|
44
|
+
readonly id: "node-pnpm-node24";
|
|
45
45
|
readonly setupNode: {
|
|
46
|
-
readonly tag: "
|
|
47
|
-
readonly uses: "actions/setup-node@
|
|
46
|
+
readonly tag: "v7.0.0";
|
|
47
|
+
readonly uses: "actions/setup-node@820762786026740c76f36085b0efc47a31fe5020";
|
|
48
48
|
};
|
|
49
49
|
readonly setupPnpm: {
|
|
50
|
-
readonly tag: "
|
|
51
|
-
readonly uses: "pnpm/action-setup@
|
|
50
|
+
readonly tag: "v6.0.9";
|
|
51
|
+
readonly uses: "pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271";
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
//#endregion
|
|
@@ -225,4 +225,4 @@ interface ExecuteAlchemyEntryResult {
|
|
|
225
225
|
*/
|
|
226
226
|
declare const executeAlchemyEntry: (options: ExecuteAlchemyEntryOptions) => Promise<ExecuteAlchemyEntryResult>;
|
|
227
227
|
//#endregion
|
|
228
|
-
export { type BundleAlchemyEntryOptions, type CheckoutStepOptions, type ExecuteAlchemyEntryOptions, type ExecuteAlchemyEntryResult, type FactoryWorkflowArtifact, type FactoryWorkflowOptions, type FactoryWorkflowSetupOptions, type InstallStepOptions, type LocalPreviewStage, type LocalPreviewStageOptions,
|
|
228
|
+
export { type BundleAlchemyEntryOptions, type CheckoutStepOptions, type ExecuteAlchemyEntryOptions, type ExecuteAlchemyEntryResult, type FactoryWorkflowArtifact, type FactoryWorkflowOptions, type FactoryWorkflowSetupOptions, type InstallStepOptions, type LocalPreviewStage, type LocalPreviewStageOptions, NODE_PNPM_ACTION_FAMILY_NODE24, type NodePnpmActionFamily, type ParseLocalPreviewStageExpected, type ParsedLocalPreviewStage, type PinnedAction, type SetupNodeStepOptions, type WorkflowStep, bundleAlchemyEntry, executeAlchemyEntry, factoryWorkflow, isLocalPreviewStage, localPreviewStage, parseLocalPreviewStage };
|
package/dist/index.js
CHANGED
|
@@ -5,25 +5,25 @@ import { build } from "esbuild";
|
|
|
5
5
|
import { spawnSync } from "node:child_process";
|
|
6
6
|
//#region src/actions.ts
|
|
7
7
|
/**
|
|
8
|
-
* The
|
|
8
|
+
* The canonical Node 24 family shared by factory-project workflows.
|
|
9
9
|
*
|
|
10
10
|
* Consumers must pass this (or their own complete family) to
|
|
11
|
-
* `factoryWorkflow`; there is deliberately no implicit default.
|
|
12
|
-
*
|
|
11
|
+
* `factoryWorkflow`; there is deliberately no implicit default. Every action
|
|
12
|
+
* in this family declares `runs.using: node24` at the named release.
|
|
13
13
|
*/
|
|
14
|
-
const
|
|
14
|
+
const NODE_PNPM_ACTION_FAMILY_NODE24 = {
|
|
15
15
|
checkout: {
|
|
16
|
-
tag: "
|
|
17
|
-
uses: "actions/checkout@
|
|
16
|
+
tag: "v7.0.1",
|
|
17
|
+
uses: "actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1"
|
|
18
18
|
},
|
|
19
|
-
id: "node-pnpm-
|
|
19
|
+
id: "node-pnpm-node24",
|
|
20
20
|
setupNode: {
|
|
21
|
-
tag: "
|
|
22
|
-
uses: "actions/setup-node@
|
|
21
|
+
tag: "v7.0.0",
|
|
22
|
+
uses: "actions/setup-node@820762786026740c76f36085b0efc47a31fe5020"
|
|
23
23
|
},
|
|
24
24
|
setupPnpm: {
|
|
25
|
-
tag: "
|
|
26
|
-
uses: "pnpm/action-setup@
|
|
25
|
+
tag: "v6.0.9",
|
|
26
|
+
uses: "pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271"
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
//#endregion
|
|
@@ -241,4 +241,4 @@ const executeAlchemyEntry = async (options) => {
|
|
|
241
241
|
};
|
|
242
242
|
};
|
|
243
243
|
//#endregion
|
|
244
|
-
export {
|
|
244
|
+
export { NODE_PNPM_ACTION_FAMILY_NODE24, bundleAlchemyEntry, executeAlchemyEntry, factoryWorkflow, isLocalPreviewStage, localPreviewStage, parseLocalPreviewStage };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patronage/factory-ci",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Deep CI and deploy building blocks for Patronage factory projects: workflow source artifacts, Alchemy entry execution, and disposable-stage semantics",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"alchemy",
|
package/src/actions.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* impossible: regenerating a workflow can no longer move a pin.
|
|
11
11
|
*
|
|
12
12
|
* `uses` is a bare `owner/repo@<sha>` string, safe to hand straight to a
|
|
13
|
-
* gagen step. The tag lives in its own field rather than as a `#
|
|
13
|
+
* gagen step. The tag lives in its own field rather than as a `# v7.0.1`
|
|
14
14
|
* suffix on `uses`, because a `#` inside a YAML scalar forces quoting and
|
|
15
15
|
* gagen's pin pass reads the value with `\S+` — the two together corrupt the
|
|
16
16
|
* emitted `uses:` line. gagen writes the `# <tag>` comment itself.
|
|
@@ -31,24 +31,24 @@ export interface NodePnpmActionFamily {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
* The
|
|
34
|
+
* The canonical Node 24 family shared by factory-project workflows.
|
|
35
35
|
*
|
|
36
36
|
* Consumers must pass this (or their own complete family) to
|
|
37
|
-
* `factoryWorkflow`; there is deliberately no implicit default.
|
|
38
|
-
*
|
|
37
|
+
* `factoryWorkflow`; there is deliberately no implicit default. Every action
|
|
38
|
+
* in this family declares `runs.using: node24` at the named release.
|
|
39
39
|
*/
|
|
40
|
-
export const
|
|
40
|
+
export const NODE_PNPM_ACTION_FAMILY_NODE24 = {
|
|
41
41
|
checkout: {
|
|
42
|
-
tag: "
|
|
43
|
-
uses: "actions/checkout@
|
|
42
|
+
tag: "v7.0.1",
|
|
43
|
+
uses: "actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1",
|
|
44
44
|
},
|
|
45
|
-
id: "node-pnpm-
|
|
45
|
+
id: "node-pnpm-node24",
|
|
46
46
|
setupNode: {
|
|
47
|
-
tag: "
|
|
48
|
-
uses: "actions/setup-node@
|
|
47
|
+
tag: "v7.0.0",
|
|
48
|
+
uses: "actions/setup-node@820762786026740c76f36085b0efc47a31fe5020",
|
|
49
49
|
},
|
|
50
50
|
setupPnpm: {
|
|
51
|
-
tag: "
|
|
52
|
-
uses: "pnpm/action-setup@
|
|
51
|
+
tag: "v6.0.9",
|
|
52
|
+
uses: "pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271",
|
|
53
53
|
},
|
|
54
54
|
} as const satisfies NodePnpmActionFamily;
|