Integrates Linear Releases into your CircleCI pipeline. Automatically tracks which issues ship with each deployment.
Add the orb and call linear/sync after your deploy step. The command requires a LINEAR_ACCESS_KEY environment variable — set it in your project settings or a context.
version: 2.1
orbs:
linear: circleci/linear@1.0.0
jobs:
deploy:
docker:
- image: cimg/base:current
steps:
- checkout
- run: ./deploy.sh
- linear/sync
workflows:
deploy:
jobs:
- deployFor full usage guidelines, see the Orb Registry listing.
Pack and validate the orb without publishing:
circleci orb pack src/ > orb.yml
circleci orb validate orb.ymlTo test changes in a live pipeline before cutting a release, publish a dev orb manually:
circleci orb pack src/ > orb.yml
circleci orb publish orb.yml circleci/linear@dev:my-branchThen reference it in a downstream pipeline:
orbs:
linear: circleci/linear@dev:my-branchDev orbs expire after 90 days and are not suitable for production use.
circleci orb info circleci/linear | grep "Latest"Releases are triggered by creating a GitHub Release, which pushes a tag and kicks off the publishing pipeline in CircleCI via test-deploy.yml.
-
Merge your pull request into
mainusing squash-and-merge. For the best experience, use Conventional Commit Messages — they make it easier to determine the correct version bump. -
Check the current version:
circleci orb info circleci/linear | grep "Latest"
-
Open the new release page on GitHub.
-
Click "Choose a tag" and type a new semantically versioned tag (e.g.
v1.0.1). Use the following as a guide:patch— bug fixes, binary version or SHA bumpsminor— new commands or parameters, backwards-compatible changesmajor— breaking changes
-
Click "+ Auto-generate release notes" to summarise merged pull requests since the last release.
-
Verify the tag is correct, then click "Publish Release". This pushes the tag and triggers the CircleCI publishing pipeline.
Monitor the pipeline at app.circleci.com. The orb-tools/publish job in test-deploy.yml will publish the new version to the orb registry under circleci/linear.
When a new linear-release binary version is available:
-
Update
VERSIONinsrc/scripts/install-linear.sh. -
Fetch the new SHA256 digests from the GitHub release:
gh api repos/linear/linear-release/releases/tags/vX.Y.Z \ --jq '.assets[] | "\(.name): \(.digest)"' -
Update the three
EXPECTED_SHA256values insrc/scripts/install-linear.shto match. -
Open a pull request, merge to
main, then cut apatchrelease.