guides/next-version.md
When the Cypress CLI and binary are built in CI, the version number they share is determined by the script in /scripts/get-next-version.js.
In most cases, the script will correctly determine the next version. If it needs to be overridden, the environment variable NEXT_VERSION can be set to the desired version (NEXT_VERSION=1.2.3). This is commonly desired on a release branch or when trying to force a specific major version.
The get-next-version.js script follows these steps:
NEXT_VERSION exists, print NEXT_VERSION and exit.packages/* or cli/* are considered.
npm/ packages do not necessarily bump the CLI and binary versions.angular commit message style.
fix: will trigger a patch version bump.feat: will trigger a minor version bump.BREAKING CHANGE: should trigger a major version bump.You can debug the script locally by running it using node ./scripts/get-next-version.js. It will analyze the commits on your current branch and print out the calculated version number.