mirror of
https://github.com/privacy-scaling-explorations/p0tion.git
synced 2026-04-21 03:00:07 -04:00
1.2 KiB
1.2 KiB
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
- Install required global dependencies:
npm install -g lerna
npm install -g conventional-changelog-conventionalcommits
- Run
lerna versionto update CHANGELOG and version numbers of sub-packages:
npx lerna version --no-push --no-git-tag-version --conventional-commits 1.2.3
- Commit changes:
git commit --message "chore(release): publish 1.2.3"
- Push changes and create a pull request
After the pull request has been merged:
-
Retrieve merged commit
-
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