CircleCI automatically triggers a release workflow every Tuesday at 9am (UTC), which will create a pull request for the next release if there have been any changes since the last release (see example).
After the pull request is reviewed, approved and merged, CircleCI will automatically publish it to npm.
There are two ways to manually trigger a release:
- Via the command line
- Via the CircleCI UI
On the main
branch (git checkout main
) run:
yarn run release
This will create a pull request for the next release. After the pull request is reviewed, approved and merged, CircleCI will automatically publish it to npm.
- In the search-insights.js project on the main branch, click the Trigger Pipeline button
- Add the boolean parameter
prepare_release
and set it totrue
- Click Trigger Pipeline
This will run the prepare_release
workflow and create a release pull request if successful. After the pull request is reviewed, approved and merged, CircleCI will automatically publish it to npm.