batched-semantic-release
v1.1.20
Published
Test project showing how to semantically publish multiple commits to NPM from GitLab
Downloads
11
Maintainers
Readme
batched-semantic-release
Test project showing how to semantically publish multiple commits to NPM from GitLab
To publish to NPM use semantic commits and then tag with string that
starts with release-
.
See .gitlab-ci.yml for actual setup.
Example
This repo has multiple commits at the beginning.
git commit -m "feat(code): test feature 1"
git push origin master
git commit -m "feat(code): test feature 2"
git push origin master
git commit -m "feat(code): test feature 3"
git push origin master
I pushed the commits and the GitLab CI But only the "test" job has executed, not the "deploy" one. Now let us publish this project to NPM by tagging a commit with "release-" string. I prefer using the date
git tag release-2016-08-30
The "deploy" job runs and publishes a version of this package to NPM
npm http 200 https://registry.npmjs.org/batched-semantic-release
+ [email protected]
Now add another commit feat(tag): describe tag example
and release it
git tag release-again