nitzanhen / npm-next-version

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm-next-version

This Github action determines the version string for the next unstable version of Rhax, based on its latest unstable version in the npm registry. It is used in the Rhax repository's workflows (to be exact, here).

While the action was implemented and tested in an ad-hoc manner for the needs of Rhax, and might change according to them, its code could be easily adapted for other projects looking for similar functionality. For what it's worth (in terms of non-specific code), "magic numbers" (strings) were avoided, and instead provided as parameters with default values.

Note: the node_modules directory is not ignored because Github actions written in Javascript require it to be present in the repository itself. See here.

About

License:MIT License


Languages

Language:JavaScript 100.0%