Skip to content

Deploy code

Michael Grandorf edited this page Sep 23, 2021 · 1 revision

How to release the website

https://dna.yousee.dk will automatic be updated when the master branch is pushed. A push to master will trigger Travis CI to deploy all code.

How to release a new npm package

Bump the npm version with following command: npm version [major|minor|patch]

Please understand or learn Semantic Versioning (SemVer) before deciding what kind of change you made.

Then push with git push followed by git push --tags

This will trigger Travic CI to deploy the new package to npm.

Document the release

Please go to https://github.com/youseedk/dna/tags and find your new version and click Create Release. Then write a title and description of your changes. It's important that the new release documents all changes and not just the major ones. Everything needs to be documentet.

If you need some help to remember all the changes you can write git log --oneline --no-merges v3.0.1..HEAD in your console. This will print all changes since last version. Please change v3.0.1 to the actual last version. This shows how important it is to write good comments everytime you commit code!

The last thing you need to do is to click Publish release and you are done.

Clone this wiki locally