This repo is a sandbox for learning how to use semantic-release in conjunction with Circle CI (https://circleci.com/gh/indiana-university/semantic-release-sandbox).
- Add the
semantic-release
package to package.json:yarn add semantic-release -D
- In Circle CI (CCI), start following your project (if you aren't already.)
- In CCI, browse to Settings -> Organizations -> Context. Create a context with the name of your project. Contexts are where we store secrets.
- Generate an NPM token:
npm token create
. Add the token to the CCI context asNPM_TOKEN
. -
Generate a GitHub personal access token with the
public_repo
scope. Add the token to the CCI context asGH_TOKEN
. - Create a
/.circleci/config.yml
. Use the one in this repo as a basis for yours. It includes apublish_package
job that is orchestrated to run on pushes tomaster
.
If PRs are squash-merged, the PR squash-merge commit message must itself be in the Angular Commit Message Style.