To release a new version of p0tion
, the following steps can be taken:
you have to replace version number 1.2.3 with the version number you are planning to release
-
Verify that tests have passed on GitHub Actions
-
Clone
p0tion
:
git clone https://github.com/privacy-scaling-explorations/p0tion.git
- Install required dependencies:
yarn install --immutable
- Install required global dependencies:
npm install -g lerna
npm install -g conventional-changelog-conventionalcommits
- Run
lerna version
to update CHANGELOG and version numbers of sub-packages:
npx lerna version --no-push --no-git-tag-version --conventional-commits 1.2.3 --message "chore(release): publish 1.2.3"
-
Push changes and create a pull request
-
Merge pull request into main branch
-
Retrieve merged commit from main branch:
git pull origin main
- Add a tag:
git tag --sign v1.2.3 --message v1.2.3
- Publish tag:
git push v1.2.3
Once the tag is pushed, GitHub Actions will automatically publish the packages to npm.js[1] and create a release on GitHub.
[1]: The following packages will be published on npm.js:
- @p0tion/actions
- @p0tion/backend
- @p0tion/phase2cli