1.0.1 • Published 3 years ago
check-github-actions-node-version v1.0.1
check-github-actions-node-version
Check the old node-version used by external github-actions.
inspired by pkgdeps/update-github-actions-permissions: A CLI that update GitHub Actions's `permissions` automatically
Install
Install with npm:
npm install check-github-actions-node-version --globalor Install and Run via npx command:
npx check-github-actions-node-version ".github/workflows/*.{yaml,yml}"Usage
Check your github actions are using an older version of node.
Usage $ check-github-actions-node-version file ...
Options --target String "node12" or "node16". Default: "node12" --verbose Boolean If enable verbose, output debug info.
Examples $ update-github-actions-permissions .github/*/.yml
References
Detection logics
- Read your workflow file
- Collect
usesactions - Fetch actions.yml from
https://raw.githubusercontent.com/${name}/${version}/action.yml - Compare
runs.usingwith --target - Output if it matches
Changelog
See Releases page.
Running tests
Install devDependencies and Run npm test:
npm testContributing
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D