-
Clone the repo:
git clone [email protected]:inloco/incognia-node.git
-
Install
pnpm
. Follow https://pnpm.io/installation -
Install deps:
cd incognia-node pnpm install
-
After making the desired changes, you should remember to update the package version:
-
Update the package version in
package.json
-
Update the
version
variable inside thesrc/version.ts
file. You can either do it manually or by running:pnpm genVersion
-
OBS: Not every merged PR on main
needs to be released. You might want to release a new version including many PRs.
That said, to release a new version, follow these steps:
- Go to the releases page (https://github.com/inloco/incognia-node/releases)
- Click on "Draft a new release"
- On the "Choose a tag" dropdown, write the version you want to release preceded by "v" and create a new tag for it. Ex: you can write
v4.3.2
and click on "Create new tag: v4.3.2". Make sure the tag matches the version you have in yourpackage.json
file - Make sure the target is set to
master
- In the "Release title" input, type the name of the created tag
- Click on "Generate release notes". Edit if needed
- Click on "Publish release"
This will automatically push it to npm (See actions)