vX.Y.Zgit checkout develop && git pull.git checkout -b vX.Y.Z develop)package.json (remove the “SNAPSHOT”).npm prune && rm -rf node_modules && npm install && npm run build && npm run test(THIS IS A LOT OF WORK! WE SHOULD TRY TO automate this in the future!!)
git log `git describe --tags --abbrev=0`..HEAD --oneline > .commits.tmpFIX #issue:FEAT #issue:git commit -am "Release vX.Y.Z"git pushWe don’t merge the development branch to the master because the master branch is different to the develop-Branch. The master branch has a dist and test folder and does not generate Source-Maps.
If we would merge the development branch would overwrite this. To solve this we use rebase instead:
git fetch && git checkout develop && git pullmaster branch on the develop branch: git checkout master && git rebase developgit tag "vX.Y.Z"master.git push --force && git push --tagmaster.npm publish (check npmjs.com)cd .. && mkdir vis_vX.Y.Z && cd vis_vX.Y.Znpm init -f && npm install viscd ../.. && bower install viscd bower_components/vis/cd ../.. && git clone git@github.com:almende/vis.git.cd visgit checkout gh-pages && git pull && git checkout -b "gh-pages_vX.Y.Z"dist folder from the master branch to the github-pages branch in another directory, overwriting existing files: cp -rf ../vis_vX.Y.Z/vis/dist .docs folder from the master branch to the github-pages branch in another directory, overwriting existing files: cp -rf ../vis_vX.Y.Z/vis/docs .examples folder from the master branch to the github-pages branch in another directory, overwriting existing files: cp -rf ../vis_vX.Y.Z/vis/examples .index.html page.git add -A && git commit -m "updates for vX.Y.Z"git push --set-upstream origin gh-pages_vX.Y.Zgit checkout develop.X.X.Z-SNAPSHOT.git commit -am "changed version to vX.X.Z-SNAPSHOT"git tag vX.X.Z-SNAPSHOT.develop.git push --force && git push --tagdevelop.DONE!