Skip to content

Latest commit

 

History

History
64 lines (40 loc) · 1.11 KB

File metadata and controls

64 lines (40 loc) · 1.11 KB

Release Packages

Instructions how to create new package releases and publish to NPM.

TLDR

Recommend the interactive CLI ✨

yarn release

Intro

The release process is semi-automatic which means:

  • Release information and git tags are generated from a local machine by a developer
  • Publish to NPM by GitHub action

Release information and git tags

Verify release information in dry-run mode

npx nx release --skip-publish -d

Does everything looks good, generate releases

npx nx release --skip-publish

Result

For affected packages

  • Updated CHANGELOG.md
  • Updated package.json
  • One release commit for all packages [ pushed ]
  • Created version tags [ pushed ]

Publish to NPM

GitHub action defined in publish.yml is triggered by new tags

  • create-nx-payload-*.*.*
  • nx-payload-*.*.*

Simplified it executes the publish command

npx nx release publish

Publish from local machine

When needed it's simple to do this manually as well

npx nx release publish --otp {token}

where {token} is generated by your 2FA authenticator app.