check-github-actions-node-version
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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 --global

or 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 uses actions
  • Fetch actions.yml from https://raw.githubusercontent.com/${name}/${version}/action.yml
  • Compare runs.using with --target
  • Output if it matches

Changelog

See Releases page.

Running tests

Install devDependencies and Run npm test:

npm test

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT license

Readme

Keywords

Package Sidebar

Install

npm i check-github-actions-node-version

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

22 kB

Total Files

18

Last publish

Collaborators

  • kyo_ago