Start by installing the (dev) dependencies—
% yarn install
Initialize Husky to get the pre-commit hook binary installed on your local development workstation—
% yarn prepare
When testing your builds with Strapi, it is best to compile the Typescript and use the JavaScript output in the ./dist
directory as your candidate (this is ultimately what is published to NPM). Generating a build can be done by running the following command—
% yarn build
- Merge feature branches, bug fixes, and whatever changes into
master
after CI passes and PRs are approved - Create a new branch off
master
when you're ready to release a new version - On this branch run
npm version [...]
(seenpm-version
docs for more info) which will bump the version inpackage.json
and make a tag (for examplenpm version patch -m "Bump for 3.1.2"
). Follow SemVer rules for patch/minor/major. - Push the version commit and the tag
git push && git push --tags origin
- Open Pull Request, "Rebase and merge" after approved
- Create a new release in the Github UI, give the release a name and add release notes (creating the release will kick off npm publish using Github Actions)
- Checkout the
master
branch and pull the latest by runninggit checkout master && git pull