github-actionlint
v1.7.11
Published
Run rhysd/actionlint from Node.js - downloads the official binary from GitHub Releases
Maintainers
Readme
github-actionlint
Run rhysd/actionlint from Node.js. Downloads the official binary from GitHub Releases on first use.
Installation
npm install --save-dev github-actionlintUsage
CLI
npx github-actionlint
npx github-actionlint .github/workflows/
npx github-actionlint -color -verboseProgrammatic
const { actionlint } = require("github-actionlint");
const result = await actionlint({
args: [".github/workflows/", "-color"],
});
console.log(result.stdout.toString());
console.log(result.stderr.toString());
process.exit(result.code);npm scripts
{
"scripts": {
"lint:workflows": "github-actionlint .github/workflows/"
}
}Environment variables
| Variable | Description |
| ---------------------- | --------------------------------------------- |
| ACTIONLINT_BIN | Path to actionlint binary (skip download) |
| ACTIONLINT_RELEASE | actionlint version (default: package version) |
| ACTIONLINT_CACHE_DIR | Cache directory for downloaded binary |
| GITHUB_TOKEN | GitHub token for rate limit (optional) |
Supported platforms
- macOS: x64, arm64
- Linux: x64, arm64, 386, arm
- Windows: x64, arm64
- FreeBSD: 386, amd64
Versioning
This package mirrors rhysd/actionlint versions. When a new actionlint release is published, the github-actionlint maintainers publish a matching release.
Releasing
See RELEASING.md for publishing to npm and CI setup (NPM_TOKEN, etc.).
License
MIT
