@form8ion/github-workflows-core 4.0.0 → 5.0.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/README.md +4 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +1 -1
- package/lib/index.mjs.map +1 -1
- package/package.json +29 -28
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@ core functionality for form8ion plugins that manage github workflows
|
|
|
6
6
|
|
|
7
7
|
[![Node CI Workflow Status][github-actions-ci-badge]][github-actions-ci-link]
|
|
8
8
|
[![Codecov][coverage-badge]][coverage-link]
|
|
9
|
+
![SLSA Level 2][slsa-badge]
|
|
9
10
|
|
|
10
11
|
<!--status-badges end -->
|
|
11
12
|
|
|
@@ -139,7 +140,7 @@ $ npm test
|
|
|
139
140
|
|
|
140
141
|
[github-actions-ci-link]: https://github.com/form8ion/github-workflows-core/actions?query=workflow%3A%22Node.js+CI%22+branch%3Amaster
|
|
141
142
|
|
|
142
|
-
[github-actions-ci-badge]: https://
|
|
143
|
+
[github-actions-ci-badge]: https://img.shields.io/github/actions/workflow/status/form8ion/github-workflows-core/node-ci.yml.svg?branch=master&logo=github
|
|
143
144
|
|
|
144
145
|
[coverage-link]: https://codecov.io/github/form8ion/github-workflows-core
|
|
145
146
|
|
|
@@ -158,3 +159,5 @@ $ npm test
|
|
|
158
159
|
[runkit-badge]: https://badge.runkitcdn.com/@form8ion/github-workflows-core.svg
|
|
159
160
|
|
|
160
161
|
[node-badge]: https://img.shields.io/node/v/@form8ion/github-workflows-core?logo=node.js
|
|
162
|
+
|
|
163
|
+
[slsa-badge]: https://slsa.dev/images/gh-badge-level2.svg
|
package/lib/index.js
CHANGED
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/steps/scaffolders.js"],"sourcesContent":["export function setupNode({versionDeterminedBy}) {\n return {\n name: 'Setup node',\n uses: 'actions/setup-node@v3',\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: 'npm audit signatures'}\n ];\n}\n\nexport function checkout() {\n return {uses: 'actions/checkout@v3'};\n}\n"],"names":[],"mappings":";;AAAO,SAAS,SAAS,CAAC,CAAC,mBAAmB,CAAC,EAAE;AACjD,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,YAAY;AACtB,IAAI,IAAI,EAAE,uBAAuB;AACjC,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,KAAK;AAClB,KAAK;AACL,GAAG,CAAC;AACJ,CAAC;AACD;AACO,SAAS,mBAAmB,GAAG;AACtC,EAAE,OAAO,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;AAC3B,CAAC;AACD;AACO,SAAS,mBAAmB,GAAG;AACtC,EAAE,OAAO;AACT,IAAI,CAAC,GAAG,EAAE,mBAAmB,CAAC;AAC9B,IAAI,CAAC,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/steps/scaffolders.js"],"sourcesContent":["export function setupNode({versionDeterminedBy}) {\n return {\n name: 'Setup node',\n uses: 'actions/setup-node@v3',\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@v3'};\n}\n"],"names":[],"mappings":";;AAAO,SAAS,SAAS,CAAC,CAAC,mBAAmB,CAAC,EAAE;AACjD,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,YAAY;AACtB,IAAI,IAAI,EAAE,uBAAuB;AACjC,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,KAAK;AAClB,KAAK;AACL,GAAG,CAAC;AACJ,CAAC;AACD;AACO,SAAS,mBAAmB,GAAG;AACtC,EAAE,OAAO,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;AAC3B,CAAC;AACD;AACO,SAAS,mBAAmB,GAAG;AACtC,EAAE,OAAO;AACT,IAAI,CAAC,GAAG,EAAE,mBAAmB,CAAC;AAC9B,IAAI,CAAC,GAAG,EAAE,+BAA+B,CAAC;AAC1C,GAAG,CAAC;AACJ,CAAC;AACD;AACO,SAAS,QAAQ,GAAG;AAC3B,EAAE,OAAO,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;AACvC;;;;;;;"}
|
package/lib/index.mjs
CHANGED
package/lib/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../src/steps/scaffolders.js"],"sourcesContent":["export function setupNode({versionDeterminedBy}) {\n return {\n name: 'Setup node',\n uses: 'actions/setup-node@v3',\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: 'npm audit signatures'}\n ];\n}\n\nexport function checkout() {\n return {uses: 'actions/checkout@v3'};\n}\n"],"names":[],"mappings":"AAAO,SAAS,SAAS,CAAC,CAAC,mBAAmB,CAAC,EAAE;AACjD,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,YAAY;AACtB,IAAI,IAAI,EAAE,uBAAuB;AACjC,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,KAAK;AAClB,KAAK;AACL,GAAG,CAAC;AACJ,CAAC;AACD;AACO,SAAS,mBAAmB,GAAG;AACtC,EAAE,OAAO,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;AAC3B,CAAC;AACD;AACO,SAAS,mBAAmB,GAAG;AACtC,EAAE,OAAO;AACT,IAAI,CAAC,GAAG,EAAE,mBAAmB,CAAC;AAC9B,IAAI,CAAC,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../src/steps/scaffolders.js"],"sourcesContent":["export function setupNode({versionDeterminedBy}) {\n return {\n name: 'Setup node',\n uses: 'actions/setup-node@v3',\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@v3'};\n}\n"],"names":[],"mappings":"AAAO,SAAS,SAAS,CAAC,CAAC,mBAAmB,CAAC,EAAE;AACjD,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,YAAY;AACtB,IAAI,IAAI,EAAE,uBAAuB;AACjC,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,KAAK;AAClB,KAAK;AACL,GAAG,CAAC;AACJ,CAAC;AACD;AACO,SAAS,mBAAmB,GAAG;AACtC,EAAE,OAAO,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;AAC3B,CAAC;AACD;AACO,SAAS,mBAAmB,GAAG;AACtC,EAAE,OAAO;AACT,IAAI,CAAC,GAAG,EAAE,mBAAmB,CAAC;AAC9B,IAAI,CAAC,GAAG,EAAE,+BAA+B,CAAC;AAC1C,GAAG,CAAC;AACJ,CAAC;AACD;AACO,SAAS,QAAQ,GAAG;AAC3B,EAAE,OAAO,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;AACvC;;;;"}
|
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
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
|
+
"version": "5.0.0",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": "^
|
|
8
|
+
"node": "^18.17 || >=20.6.1"
|
|
9
9
|
},
|
|
10
10
|
"author": "Matt Travi <npm@travi.org> (https://matt.travi.org)",
|
|
11
11
|
"repository": "form8ion/github-workflows-core",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"test:unit:base": "DEBUG=any mocha 'src/**/*-test.js'",
|
|
40
40
|
"lint:lockfile": "lockfile-lint",
|
|
41
41
|
"lint:js": "eslint . --cache",
|
|
42
|
-
"lint:js:fix": "run-s lint:js -- --fix",
|
|
42
|
+
"lint:js:fix": "run-s 'lint:js -- --fix'",
|
|
43
43
|
"lint:md": "remark . --frail",
|
|
44
44
|
"generate:md": "remark . --output",
|
|
45
45
|
"pregenerate:md": "run-s build",
|
|
@@ -57,37 +57,38 @@
|
|
|
57
57
|
"access": "public",
|
|
58
58
|
"provenance": true
|
|
59
59
|
},
|
|
60
|
+
"packageManager": "npm@10.5.0+sha256.17ca6e08e7633b624e8f870db81a78f46afe119de62bcaf0a7407574139198fc",
|
|
60
61
|
"devDependencies": {
|
|
61
|
-
"@babel/register": "7.
|
|
62
|
-
"@cucumber/cucumber": "9.
|
|
63
|
-
"@form8ion/babel-preset": "1.6.
|
|
64
|
-
"@form8ion/commitlint-config": "1.0.
|
|
65
|
-
"@form8ion/eslint-config": "
|
|
62
|
+
"@babel/register": "7.23.7",
|
|
63
|
+
"@cucumber/cucumber": "9.6.0",
|
|
64
|
+
"@form8ion/babel-preset": "1.6.125",
|
|
65
|
+
"@form8ion/commitlint-config": "1.0.76",
|
|
66
|
+
"@form8ion/eslint-config": "7.0.9",
|
|
66
67
|
"@form8ion/eslint-config-cucumber": "1.4.1",
|
|
67
|
-
"@form8ion/eslint-config-mocha": "
|
|
68
|
-
"@form8ion/remark-lint-preset": "
|
|
69
|
-
"@rollup/plugin-babel": "6.0.
|
|
70
|
-
"@travi/any": "
|
|
68
|
+
"@form8ion/eslint-config-mocha": "3.0.3",
|
|
69
|
+
"@form8ion/remark-lint-preset": "6.0.2",
|
|
70
|
+
"@rollup/plugin-babel": "6.0.4",
|
|
71
|
+
"@travi/any": "3.1.0",
|
|
71
72
|
"babel-plugin-istanbul": "6.1.1",
|
|
72
|
-
"ban-sensitive-files": "1.
|
|
73
|
-
"c8": "
|
|
74
|
-
"chai": "4.
|
|
73
|
+
"ban-sensitive-files": "1.10.1",
|
|
74
|
+
"c8": "9.1.0",
|
|
75
|
+
"chai": "4.4.1",
|
|
75
76
|
"cross-env": "7.0.3",
|
|
76
77
|
"cz-conventional-changelog": "3.3.0",
|
|
77
|
-
"gherkin-lint": "4.2.
|
|
78
|
-
"husky": "
|
|
79
|
-
"lockfile-lint": "4.
|
|
80
|
-
"ls-engines": "0.9.
|
|
81
|
-
"mocha": "10.
|
|
78
|
+
"gherkin-lint": "4.2.4",
|
|
79
|
+
"husky": "9.0.11",
|
|
80
|
+
"lockfile-lint": "4.13.2",
|
|
81
|
+
"ls-engines": "0.9.1",
|
|
82
|
+
"mocha": "10.3.0",
|
|
82
83
|
"mock-fs": "5.2.0",
|
|
83
|
-
"npm-run-
|
|
84
|
-
"publint": "0.2.
|
|
85
|
-
"remark-cli": "
|
|
86
|
-
"remark-toc": "
|
|
87
|
-
"remark-usage": "
|
|
88
|
-
"rimraf": "5.0.
|
|
89
|
-
"rollup": "
|
|
84
|
+
"npm-run-all2": "6.1.2",
|
|
85
|
+
"publint": "0.2.7",
|
|
86
|
+
"remark-cli": "12.0.0",
|
|
87
|
+
"remark-toc": "9.0.0",
|
|
88
|
+
"remark-usage": "11.0.1",
|
|
89
|
+
"rimraf": "5.0.5",
|
|
90
|
+
"rollup": "4.13.0",
|
|
90
91
|
"rollup-plugin-auto-external": "2.0.0",
|
|
91
|
-
"sinon": "
|
|
92
|
+
"sinon": "17.0.1"
|
|
92
93
|
}
|
|
93
94
|
}
|