I am trying to find a solution to publish a npm artefact based on the git information.
I looked to npm version and release-it, but these tools automate git actions (commit/push) to make the link between npm artefact version and git, it doesnot get the information from git.
I would like to publish npm artefact with git identification of its source, something like the result of git describe --tags --always
.
Like this it could be possible to make the link between git/npm easily and the only git action is tagging, the continous integration pipeline could publish the artefact through npm publish
.
git-tag-version seems making a part of the job, but doesnot makes the link with artefact version.
I will probably try to go in this way, but maybe there is some features in npm that allow to do this more easily ?