@form8ion/github-workflows-core 5.4.0 → 5.5.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/lib/index.js +7 -2
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +8 -4
- package/lib/index.mjs.map +1 -1
- package/package.json +19 -19
package/lib/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var node_fs = require('node:fs');
|
|
|
6
6
|
function setupNode({versionDeterminedBy}) {
|
|
7
7
|
return {
|
|
8
8
|
name: 'Setup node',
|
|
9
|
-
uses: 'actions/setup-node@v4.0
|
|
9
|
+
uses: 'actions/setup-node@v4.2.0',
|
|
10
10
|
with: {
|
|
11
11
|
...'nvmrc' === versionDeterminedBy && {'node-version-file': '.nvmrc'},
|
|
12
12
|
// eslint-disable-next-line no-template-curly-in-string
|
|
@@ -28,7 +28,7 @@ function installDependencies() {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
function checkout() {
|
|
31
|
-
return {uses: 'actions/checkout@v4.
|
|
31
|
+
return {uses: 'actions/checkout@v4.2.2'};
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
function existenceChecker ({projectRoot, name}) {
|
|
@@ -50,12 +50,17 @@ function renamer ({projectRoot, oldName, newName}) {
|
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
function tester ({projectRoot}) {
|
|
54
|
+
return core.directoryExists(`${projectRoot}/.github/workflows`);
|
|
55
|
+
}
|
|
56
|
+
|
|
53
57
|
exports.loadWorkflowFile = loader;
|
|
54
58
|
exports.renameWorkflowFile = renamer;
|
|
55
59
|
exports.scaffoldCheckoutStep = checkout;
|
|
56
60
|
exports.scaffoldDependencyInstallationStep = installDependencies;
|
|
57
61
|
exports.scaffoldNodeSetupStep = setupNode;
|
|
58
62
|
exports.scaffoldVerificationStep = executeVerification;
|
|
63
|
+
exports.test = tester;
|
|
59
64
|
exports.workflowFileExists = existenceChecker;
|
|
60
65
|
exports.writeWorkflowFile = writer;
|
|
61
66
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/steps/scaffolders.js","../src/workflow-file/existence-checker.js","../src/workflow-file/loader.js","../src/workflow-file/writer.js","../src/workflow-file/renamer.js"],"sourcesContent":["export function setupNode({versionDeterminedBy}) {\n return {\n name: 'Setup node',\n uses: 'actions/setup-node@v4.0
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/steps/scaffolders.js","../src/workflow-file/existence-checker.js","../src/workflow-file/loader.js","../src/workflow-file/writer.js","../src/workflow-file/renamer.js","../src/tester.js"],"sourcesContent":["export function setupNode({versionDeterminedBy}) {\n return {\n name: 'Setup node',\n uses: 'actions/setup-node@v4.2.0',\n with: {\n ...'nvmrc' === versionDeterminedBy && {'node-version-file': '.nvmrc'},\n // eslint-disable-next-line no-template-curly-in-string\n ...'matrix' === versionDeterminedBy && {'node-version': '${{ matrix.node }}'},\n cache: 'npm'\n }\n };\n}\n\nexport function executeVerification() {\n return {run: 'npm test'};\n}\n\nexport function installDependencies() {\n return [\n {run: 'npm clean-install'},\n {run: 'corepack npm audit signatures'}\n ];\n}\n\nexport function checkout() {\n return {uses: 'actions/checkout@v4.2.2'};\n}\n","import {fileExists} from '@form8ion/core';\n\nexport default function ({projectRoot, name}) {\n return fileExists(`${projectRoot}/.github/workflows/${name}.yml`);\n}\n","import {fileTypes, loadConfigFile} from '@form8ion/core';\n\nexport default function ({projectRoot, name}) {\n return loadConfigFile({path: `${projectRoot}/.github/workflows`, name, format: fileTypes.YAML});\n}\n","import {fileTypes, writeConfigFile} from '@form8ion/core';\n\nexport default function ({projectRoot, name, config}) {\n return writeConfigFile({path: `${projectRoot}/.github/workflows`, name, config, format: fileTypes.YAML});\n}\n","import {promises as fs} from 'node:fs';\n\nexport default function ({projectRoot, oldName, newName}) {\n return fs.rename(\n `${projectRoot}/.github/workflows/${oldName}.yml`,\n `${projectRoot}/.github/workflows/${newName}.yml`\n );\n}\n","import {directoryExists} from '@form8ion/core';\n\nexport default function ({projectRoot}) {\n return directoryExists(`${projectRoot}/.github/workflows`);\n}\n"],"names":["fileExists","loadConfigFile","fileTypes","writeConfigFile","fs","directoryExists"],"mappings":";;;;;AAAO,SAAS,SAAS,CAAC,CAAC,mBAAmB,CAAC,EAAE;AACjD,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,YAAY;AACtB,IAAI,IAAI,EAAE,2BAA2B;AACrC,IAAI,IAAI,EAAE;AACV,MAAM,GAAG,OAAO,KAAK,mBAAmB,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC;AAC3E;AACA,MAAM,GAAG,QAAQ,KAAK,mBAAmB,IAAI,CAAC,cAAc,EAAE,oBAAoB,CAAC;AACnF,MAAM,KAAK,EAAE;AACb;AACA,GAAG;AACH;;AAEO,SAAS,mBAAmB,GAAG;AACtC,EAAE,OAAO,CAAC,GAAG,EAAE,UAAU,CAAC;AAC1B;;AAEO,SAAS,mBAAmB,GAAG;AACtC,EAAE,OAAO;AACT,IAAI,CAAC,GAAG,EAAE,mBAAmB,CAAC;AAC9B,IAAI,CAAC,GAAG,EAAE,+BAA+B;AACzC,GAAG;AACH;;AAEO,SAAS,QAAQ,GAAG;AAC3B,EAAE,OAAO,CAAC,IAAI,EAAE,yBAAyB,CAAC;AAC1C;;ACxBe,yBAAQ,EAAE,CAAC,WAAW,EAAE,IAAI,CAAC,EAAE;AAC9C,EAAE,OAAOA,eAAU,CAAC,CAAC,EAAE,WAAW,CAAC,mBAAmB,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;AACnE;;ACFe,eAAQ,EAAE,CAAC,WAAW,EAAE,IAAI,CAAC,EAAE;AAC9C,EAAE,OAAOC,mBAAc,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,WAAW,CAAC,kBAAkB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAEC,cAAS,CAAC,IAAI,CAAC,CAAC;AACjG;;ACFe,eAAQ,EAAE,CAAC,WAAW,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE;AACtD,EAAE,OAAOC,oBAAe,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,WAAW,CAAC,kBAAkB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAED,cAAS,CAAC,IAAI,CAAC,CAAC;AAC1G;;ACFe,gBAAQ,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE;AAC1D,EAAE,OAAOE,gBAAE,CAAC,MAAM;AAClB,IAAI,CAAC,EAAE,WAAW,CAAC,mBAAmB,EAAE,OAAO,CAAC,IAAI,CAAC;AACrD,IAAI,CAAC,EAAE,WAAW,CAAC,mBAAmB,EAAE,OAAO,CAAC,IAAI;AACpD,GAAG;AACH;;ACLe,eAAQ,EAAE,CAAC,WAAW,CAAC,EAAE;AACxC,EAAE,OAAOC,oBAAe,CAAC,CAAC,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC;AAC5D;;;;;;;;;;;;"}
|
package/lib/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { fileExists, loadConfigFile, fileTypes, writeConfigFile } from '@form8ion/core';
|
|
1
|
+
import { fileExists, loadConfigFile, fileTypes, writeConfigFile, directoryExists } from '@form8ion/core';
|
|
2
2
|
import { promises } from 'node:fs';
|
|
3
3
|
|
|
4
4
|
function setupNode({versionDeterminedBy}) {
|
|
5
5
|
return {
|
|
6
6
|
name: 'Setup node',
|
|
7
|
-
uses: 'actions/setup-node@v4.0
|
|
7
|
+
uses: 'actions/setup-node@v4.2.0',
|
|
8
8
|
with: {
|
|
9
9
|
...'nvmrc' === versionDeterminedBy && {'node-version-file': '.nvmrc'},
|
|
10
10
|
// eslint-disable-next-line no-template-curly-in-string
|
|
@@ -26,7 +26,7 @@ function installDependencies() {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
function checkout() {
|
|
29
|
-
return {uses: 'actions/checkout@v4.
|
|
29
|
+
return {uses: 'actions/checkout@v4.2.2'};
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
function existenceChecker ({projectRoot, name}) {
|
|
@@ -48,5 +48,9 @@ function renamer ({projectRoot, oldName, newName}) {
|
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
function tester ({projectRoot}) {
|
|
52
|
+
return directoryExists(`${projectRoot}/.github/workflows`);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { loader as loadWorkflowFile, renamer as renameWorkflowFile, checkout as scaffoldCheckoutStep, installDependencies as scaffoldDependencyInstallationStep, setupNode as scaffoldNodeSetupStep, executeVerification as scaffoldVerificationStep, tester as test, existenceChecker as workflowFileExists, writer as writeWorkflowFile };
|
|
52
56
|
//# sourceMappingURL=index.mjs.map
|
package/lib/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../src/steps/scaffolders.js","../src/workflow-file/existence-checker.js","../src/workflow-file/loader.js","../src/workflow-file/writer.js","../src/workflow-file/renamer.js"],"sourcesContent":["export function setupNode({versionDeterminedBy}) {\n return {\n name: 'Setup node',\n uses: 'actions/setup-node@v4.0
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../src/steps/scaffolders.js","../src/workflow-file/existence-checker.js","../src/workflow-file/loader.js","../src/workflow-file/writer.js","../src/workflow-file/renamer.js","../src/tester.js"],"sourcesContent":["export function setupNode({versionDeterminedBy}) {\n return {\n name: 'Setup node',\n uses: 'actions/setup-node@v4.2.0',\n with: {\n ...'nvmrc' === versionDeterminedBy && {'node-version-file': '.nvmrc'},\n // eslint-disable-next-line no-template-curly-in-string\n ...'matrix' === versionDeterminedBy && {'node-version': '${{ matrix.node }}'},\n cache: 'npm'\n }\n };\n}\n\nexport function executeVerification() {\n return {run: 'npm test'};\n}\n\nexport function installDependencies() {\n return [\n {run: 'npm clean-install'},\n {run: 'corepack npm audit signatures'}\n ];\n}\n\nexport function checkout() {\n return {uses: 'actions/checkout@v4.2.2'};\n}\n","import {fileExists} from '@form8ion/core';\n\nexport default function ({projectRoot, name}) {\n return fileExists(`${projectRoot}/.github/workflows/${name}.yml`);\n}\n","import {fileTypes, loadConfigFile} from '@form8ion/core';\n\nexport default function ({projectRoot, name}) {\n return loadConfigFile({path: `${projectRoot}/.github/workflows`, name, format: fileTypes.YAML});\n}\n","import {fileTypes, writeConfigFile} from '@form8ion/core';\n\nexport default function ({projectRoot, name, config}) {\n return writeConfigFile({path: `${projectRoot}/.github/workflows`, name, config, format: fileTypes.YAML});\n}\n","import {promises as fs} from 'node:fs';\n\nexport default function ({projectRoot, oldName, newName}) {\n return fs.rename(\n `${projectRoot}/.github/workflows/${oldName}.yml`,\n `${projectRoot}/.github/workflows/${newName}.yml`\n );\n}\n","import {directoryExists} from '@form8ion/core';\n\nexport default function ({projectRoot}) {\n return directoryExists(`${projectRoot}/.github/workflows`);\n}\n"],"names":["fs"],"mappings":";;;AAAO,SAAS,SAAS,CAAC,CAAC,mBAAmB,CAAC,EAAE;AACjD,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,YAAY;AACtB,IAAI,IAAI,EAAE,2BAA2B;AACrC,IAAI,IAAI,EAAE;AACV,MAAM,GAAG,OAAO,KAAK,mBAAmB,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC;AAC3E;AACA,MAAM,GAAG,QAAQ,KAAK,mBAAmB,IAAI,CAAC,cAAc,EAAE,oBAAoB,CAAC;AACnF,MAAM,KAAK,EAAE;AACb;AACA,GAAG;AACH;;AAEO,SAAS,mBAAmB,GAAG;AACtC,EAAE,OAAO,CAAC,GAAG,EAAE,UAAU,CAAC;AAC1B;;AAEO,SAAS,mBAAmB,GAAG;AACtC,EAAE,OAAO;AACT,IAAI,CAAC,GAAG,EAAE,mBAAmB,CAAC;AAC9B,IAAI,CAAC,GAAG,EAAE,+BAA+B;AACzC,GAAG;AACH;;AAEO,SAAS,QAAQ,GAAG;AAC3B,EAAE,OAAO,CAAC,IAAI,EAAE,yBAAyB,CAAC;AAC1C;;ACxBe,yBAAQ,EAAE,CAAC,WAAW,EAAE,IAAI,CAAC,EAAE;AAC9C,EAAE,OAAO,UAAU,CAAC,CAAC,EAAE,WAAW,CAAC,mBAAmB,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;AACnE;;ACFe,eAAQ,EAAE,CAAC,WAAW,EAAE,IAAI,CAAC,EAAE;AAC9C,EAAE,OAAO,cAAc,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,WAAW,CAAC,kBAAkB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;AACjG;;ACFe,eAAQ,EAAE,CAAC,WAAW,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE;AACtD,EAAE,OAAO,eAAe,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,WAAW,CAAC,kBAAkB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;AAC1G;;ACFe,gBAAQ,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE;AAC1D,EAAE,OAAOA,QAAE,CAAC,MAAM;AAClB,IAAI,CAAC,EAAE,WAAW,CAAC,mBAAmB,EAAE,OAAO,CAAC,IAAI,CAAC;AACrD,IAAI,CAAC,EAAE,WAAW,CAAC,mBAAmB,EAAE,OAAO,CAAC,IAAI;AACpD,GAAG;AACH;;ACLe,eAAQ,EAAE,CAAC,WAAW,CAAC,EAAE;AACxC,EAAE,OAAO,eAAe,CAAC,CAAC,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC;AAC5D;;;;"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@form8ion/github-workflows-core",
|
|
3
3
|
"description": "core functionality for form8ion plugins that manage github workflows",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "5.
|
|
5
|
+
"version": "5.5.0",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": "^18.17 || >=20.6.1"
|
|
@@ -57,39 +57,39 @@
|
|
|
57
57
|
"access": "public",
|
|
58
58
|
"provenance": true
|
|
59
59
|
},
|
|
60
|
-
"packageManager": "npm@
|
|
60
|
+
"packageManager": "npm@11.1.0+sha512.acf301ad9b9ddba948fcb72341e2f0fcae477f56a95cc2a092934d133a7461062633cefbf93d5934a3dc0768674e2edee9f04dcfcc4bb4c327ff0e3a7d552a1b",
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"@form8ion/core": "^4.7.1"
|
|
63
|
+
},
|
|
61
64
|
"devDependencies": {
|
|
62
|
-
"@babel/register": "7.
|
|
65
|
+
"@babel/register": "7.25.9",
|
|
63
66
|
"@cucumber/cucumber": "10.9.0",
|
|
64
|
-
"@form8ion/babel-preset": "1.6.
|
|
65
|
-
"@form8ion/commitlint-config": "
|
|
66
|
-
"@form8ion/eslint-config": "7.0.
|
|
67
|
+
"@form8ion/babel-preset": "1.6.141",
|
|
68
|
+
"@form8ion/commitlint-config": "2.0.3",
|
|
69
|
+
"@form8ion/eslint-config": "7.0.12",
|
|
67
70
|
"@form8ion/eslint-config-cucumber": "1.4.1",
|
|
68
71
|
"@form8ion/eslint-config-mocha": "3.0.6",
|
|
69
|
-
"@form8ion/remark-lint-preset": "6.0.
|
|
72
|
+
"@form8ion/remark-lint-preset": "6.0.6",
|
|
70
73
|
"@rollup/plugin-babel": "6.0.4",
|
|
71
74
|
"@travi/any": "3.1.2",
|
|
72
|
-
"ban-sensitive-files": "1.10.
|
|
73
|
-
"c8": "10.1.
|
|
75
|
+
"ban-sensitive-files": "1.10.7",
|
|
76
|
+
"c8": "10.1.3",
|
|
74
77
|
"cross-env": "7.0.3",
|
|
75
78
|
"cz-conventional-changelog": "3.3.0",
|
|
76
79
|
"gherkin-lint": "4.2.4",
|
|
77
|
-
"husky": "9.1.
|
|
78
|
-
"jest-when": "3.
|
|
80
|
+
"husky": "9.1.7",
|
|
81
|
+
"jest-when": "3.7.0",
|
|
79
82
|
"lockfile-lint": "4.14.0",
|
|
80
83
|
"ls-engines": "0.9.3",
|
|
81
|
-
"mock-fs": "5.
|
|
82
|
-
"npm-run-all2": "
|
|
83
|
-
"publint": "0.2
|
|
84
|
+
"mock-fs": "5.4.1",
|
|
85
|
+
"npm-run-all2": "7.0.2",
|
|
86
|
+
"publint": "0.3.2",
|
|
84
87
|
"remark-cli": "12.0.1",
|
|
85
88
|
"remark-toc": "9.0.0",
|
|
86
89
|
"remark-usage": "11.0.1",
|
|
87
90
|
"rimraf": "6.0.1",
|
|
88
|
-
"rollup": "4.
|
|
91
|
+
"rollup": "4.32.1",
|
|
89
92
|
"rollup-plugin-auto-external": "2.0.0",
|
|
90
|
-
"vitest": "
|
|
91
|
-
},
|
|
92
|
-
"dependencies": {
|
|
93
|
-
"@form8ion/core": "^4.7.1"
|
|
93
|
+
"vitest": "3.0.4"
|
|
94
94
|
}
|
|
95
95
|
}
|