test-package
Auto publish configuration
$ npm install -D auto
-
create npm token at https://www.npmjs.com/settings/<username>/tokens
-
make token available as env variables (NPM_TOKEN
, GH_TOKEN
on ci)
-
configure ci to make auto release (full example can be seen in .github/workflows/release.yml)
$ npx auto shipit
Make first publish
Run npm publish --access public to create the package with public access
$ npm publish --access public
Mark prs for release
One of these labels have to be added to the pr in order increment right version number after it's merged into master: major
, minor
, patch
.
Prerelease branches
This repo has dev
prerelease branch.
Make sure that pr contains label specifying version number to increment
see example