Proposal: Resolve version information from online resources
asamuzaK opened this issue · comments
asamuzaK (Kazz) commented
I created a helper module for js2bin.
asamuzaK/js2bin-version-info: Helper module for js2bin. Resolve version information from online resources.
This module gets the latest version(s) for the "build" and "ci" commands from online resources.
- For the "build" command, it gets the latest version from the js2bin release asset.
Currently, if the user does not specify a version, it falls back to10.16.0
, but it is not good to let the user use an old version which may contain vulnerability. - For the "ci" command, it will compare the js2bin release assets and nodejs LTS, and return a list of nodejs LTS versions that are not included in the assets.
Currently, you are updating the version each time in the azure-pipeline.yml, but this module will let you free from that work.
Also, if you add a cron job in the azure-pipeline, you will be able to release the latest assets automatically.
If you are interested in this module, I will send a PR containing this module.
How about it?
Ledion Bitincka commented
That would be pretty useful to ensure that we always build the latest LTS releases - see #7. Looking forward to the PR - thanks!!
asamuzaK (Kazz) commented
PR ready. #19
asamuzaK (Kazz) commented
It doesn't seem to be reviewed, so I will withdraw the PR