Skip to content

Latest commit

 

History

History
57 lines (36 loc) · 2.02 KB

CHANGESETS.md

File metadata and controls

57 lines (36 loc) · 2.02 KB

Changesets

Trigger.dev uses changesets to manage updated our packages and releasing them to npm.

Adding a changeset

To add a changeset, use pnpm run changeset:add and follow the instructions here. Please only ever select one of our public packages when adding a changeset.

Release instructions (local only)

Based on the instructions here

  1. Run pnpm run changeset:version
  2. Run pnpm run changeset:release

Release instructions (CI)

Please follow the best-practice of adding changesets in the same commit as the code making the change with pnpm run changeset:add, as it will allow our release.yml CI workflow to function properly:

  • Anytime new changesets are added in a commit in the main branch, the release.yml workflow will run and will automatically create/update a PR with a fresh run of pnpm run changeset:version.
  • When the version PR is merged into main, the release.yml workflow will automatically run pnpm run changeset:release to build and release packages to npm.

Pre-release instructions

  1. Add changesets as usual pnpm run changeset:add
  2. Switch to pre-release mode by running pnpm run changeset:next
  3. Create version pnpm run changeset:version
  4. Release pnpm run changeset:release
  5. Switch back to normal mode by running pnpm run changeset:normal

Snapshot instructions

!MAKE SURE TO UPDATE THE TAG IN THE INSTRUCTIONS BELOW!

  1. Add changesets as usual
pnpm run changeset:add
  1. Create a snapshot version (replace "prerelease" with your tag)
pnpm exec changeset version --snapshot prerelease
  1. Build the packages:
pnpm run build --filter "@trigger.dev/*" --filter "trigger.dev"
  1. Publish the snapshot (replace "dev" with your tag)
pnpm exec changeset publish --no-git-tag --snapshot --tag prerelease