When to publish new npm packages between major releases? #1185
sideshowbarker
started this conversation in
Infrastructure
Replies: 1 comment 1 reply
-
2 approaches come to mind:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We should decide when (how often) to publish new NPM packages between releases.
cc @nschonni
Currently the only NPM releases that happen with certainty are those for major releases of vnu itself. And the most-recent major release of vnu was the 20.6.30 release, more than one year ago.
In the mean time, for every push to main, we publish snapshot
latest
-tagged releases to https://github.com/validator/validator/releases/tag/latest, and also for every push to main and every new tag, we publish a new Docker image to https://github.com/validator/validator/pkgs/container/validator.But for npm publishing, it seems clear we don’t want to publish a new npm package for every push to master. (And in fact, with our version-numbering scheme, as can only publish to a new npm once per day — if we push to main more than once a day, the associated npm package wouldn’t get updated.)
So what I’ve been doing in practice is, I’ve just been publishing new npm packages on-demand, when somebody asks me to publish a new one. But it would be good have some strategy other than just “when somebody asks for a new package”.
Orthogonal to the question of when we should publish new npm packages is the question of whether we should automate the publication (in our CI/GitHub Actions).
Given that it takes literally only a few seconds to run
./checker.py npm-release
from the command line locally to publish a new npm, and given that we don’t want/need to trigger npm releases based on any particular repo events, it’s not clear to me what value there’d be to adding CI automation for it.Beta Was this translation helpful? Give feedback.
All reactions