Reworking Groundwork 1. semantic-release
Here’s a step-by-step guide for creating a Metalsmith blog template from scratch.
- Create a new GitHub repo. Mine is called
- Clone to your local machine.
- Add an open source license and .gitignore.
- Download the latest Metalsmith
- Extract the
static-siteexample, add files to your project directory.
- Set up a Travis account, linked to your GitHub account, and add your project repository.
- Install semantic-release! I used @kentcdodds instructions from his @eggheadio video. In short, setup is:
npm install -g semantic-release-cli
- semantic-release adds a
.travis.ymlfile and scripts to
- I modified
"version": "0.0.0-semantic-release", to emphasise that semantic-release is dealing with versioning.
- semantic-release works on git commit conventions:
fix(pencil): stop graphite breaking when too much pressure applied
feat(pencil): add 'graphiteWidth' option
perf(pencil): remove graphiteWidth option
BREAKING CHANGE: The graphiteWidth option has been removed.
Way to go, it worked for me 😁 🚀
Well, it’s the 1st of December, and now it’s broken 😢. Not sure why, tried reinstalling. It was great fun while it lasted. I will try again in the future…