@freakin-ward/semantic-release-example

1.1.2 • Public • Published

Simple demo of setting up semantic release, commitizen and husky

Commitizen friendly semantic-release


semantic-release-example

Inspired by these articles

Getting Started

This project demonstrates how to setup and configure semantic-release using conventional commits and commitizen.

Use npm run cz instead of git commit

  1. Install and configure semantic-release-cli
  2. Commit messages

Install

Summary of changes required for implementation in this project

  • run npm i -g semantic-release-cli
  • run semantic-release-cli setup things

npm-release.yml

This github action is configured to run manually or with each push to main.

semantic-release-cli will need access to both the github_token secret and npm_token.

  1. Create a npm publish token
  2. Create a github secret, named NPM_TOKEN
  3. Pass GITHUB_TOKEN and NPM_TOKEN as Environment variables

package.json

  • Set "version": "0.0.0-semantically-released"
  • Configure repository url

.releaserc

Override default tag deployment, configure branches to trigger a release.

Commit messages

commitizen is used to create standard commit messages and is helpful using git cli

commitlint is used to lint the commit messages. This ensures that commit messages adhere to the standard format

IDE plugins are available as well

Readme

Keywords

none

Package Sidebar

Install

npm i @freakin-ward/semantic-release-example

Weekly Downloads

1

Version

1.1.2

License

ISC

Unpacked Size

5.21 kB

Total Files

7

Last publish

Collaborators

  • freakinward