I created a 'next' branch to release the 'next' version of my package to npm. which i think is a pretty darn cool feature of semantic-release. However, now I'm a bit unclear on what I need to do to properly move that over to my master branch to ensure it now becomes the 'latest' tag? Can I do this without cutting a new release and just update the tag? Or is there some other magical semantic-y way of doing this?
Asked
Active
Viewed 221 times
1 Answers
1
IF you use semantic-release version 16.0.0 (currently in beta) you would have to merge the next
branch into the master
branch. semantic-release will take care of making the version available on @next
dist-tag to @latest
.
Be aware that this merge has to preserve the Git tags and if you use the GitHub "Rebase and Merge" is won't be the case as each commit will be rewritten.

Pierre Vanduynslager
- 811
- 7
- 7
-
so you will have to merge to master to create a pre release?? – Seeliang Nov 14 '19 at 05:32
-
1No. You merge to create a new release on master. – Pierre Vanduynslager Nov 15 '19 at 17:19