Skip to content

Latest commit

 

History

History
11 lines (10 loc) · 1.19 KB

RELEASE.md

File metadata and controls

11 lines (10 loc) · 1.19 KB

Releasing

  1. Log into npm in your terminal
  2. Build the package you want to publish. For example, to build the tokens package, run pnpm --filter ./libraries/tokens run build
  3. Update the changelog
  4. 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
  5. Push your changes to git: git add . then git commit -m "update version" and then git push
  6. Publish the package to npm by running pnpm --filter ./libraries/tokens recursive exec -- pnpm publish --tag alpha --access public
  7. 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
  8. Then run git tag [email protected] and git push --tags origin develop
  9. 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