Automating your Cloud Deployments Using Semantic Release
Here is a 3 step guide to significantly improving your deployment process by taking out the manual tagging and pushing in GitHub. Be aware that semantic release can be used in any cloud provider environment (GCP, AWS or Azure).
Step 1: Understand Semantic Release
Semantic release is an open-source npm framework that automates the release and deployment process of a source code base. Ever had to tag and push to your remote branch using git to trigger a CI/CD process? Semantic release handles that for you, including the versioning of your tags by parsing the commit message (known as semantic versioning).
Semantic release can even generate release notes and a changelog for you! This works by taking your commit message and tag version and compiles into a changelog markdown file. You need to do nothing!
Step 2: Create a Semantic Release Configuration File
The release configuration file, named .releaserc.json contains the details that will be used when running the semantic release package. These define the branch where you want to trigger a tag, additional plugins and importantly, the release rules that guide what to look for in a commit message. These rules determine how the semantic versioning…