1.1.2 • Published 3 years ago

@freakin-ward/semantic-release-example v1.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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 1. 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

.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

1.1.1

3 years ago

1.1.0

3 years ago

1.1.2

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago