Trigger.dev uses changesets to manage updated our packages and releasing them to npm.
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.
Based on the instructions here
- Run
pnpm run changeset:version - Run
pnpm run changeset:release
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
mainbranch, the release.yml workflow will run and will automatically create/update a PR with a fresh run ofpnpm run changeset:version. - When the version PR is merged into
main, the release.yml workflow will automatically runpnpm run changeset:releaseto build and release packages to npm.
- Add changesets as usual
pnpm run changeset:add - Switch to pre-release mode by running
pnpm run changeset:next - Create version
pnpm run changeset:version - Release
pnpm run changeset:release - Switch back to normal mode by running
pnpm run changeset:normal
!MAKE SURE TO UPDATE THE TAG IN THE INSTRUCTIONS BELOW!
- Add changesets as usual
pnpm run changeset:add- Create a snapshot version (replace "prerelease" with your tag)
pnpm exec changeset version --snapshot prerelease- Build the packages:
pnpm run build --filter "@systemfsoftware/trigger.dev_*" --filter "trigger.dev"- Publish the snapshot (replace "dev" with your tag)
pnpm exec changeset publish --no-git-tag --snapshot --tag prerelease