- Log into npm in your terminal
- Build the package you want to publish. For example, to build the tokens package, run
pnpm --filter ./libraries/tokens run build
- Update the changelog
- Bump the version-number. For example, to bump the version from 0.0.1-alpha.1 to 0.0.1-alpha.2, you run
pnpm --filter ./libraries/tokens recursive exec -- pnpm version prerelease
- Push your changes to git:
git add .
thengit commit -m "update version"
and thengit push
- Publish the package to npm by running
pnpm --filter ./libraries/tokens recursive exec -- pnpm publish --tag alpha --access public
- If you want to also tag the published package with latest, then you have to run the following command (make sure you use the version-number you just published to npm):
npm dist-tag add @equinor/[email protected] latest
- Then run
git tag [email protected]
andgit push --tags origin develop
- Head over to the repository in Github and draft a new release from the new tag (ellipsis-menu on the right-hand side) and include the changes from the changelog in the description