iu-semantic-release-sandbox
v1.1.0
Published
A toy package for testing semantic-release + CI
Downloads
34
Readme
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).
Steps to implement
- Add the
semantic-releasepackage 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_reposcope. 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_packagejob that is orchestrated to run on pushes tomaster.
Note on PRs
If PRs are squash-merged, the PR squash-merge commit message must itself be in the Angular Commit Message Style.
