Run rhysd/actionlint from Node.js.
Most parts of main.go
are reused from rhysd/actionlint/playground/main.go.
$ npm install --save-dev node-actionlint
$ ./node_modules/.bin/node-actionlint
However, the main purpose of this package is to be used with the CLI.
const { runActionLint } = require("node-actionlint");
(async () => {
const results = await runActionLint(source, path);
})();
$ npm run release -- --release=patch