Travis CI
Last updated
Was this helpful?
Last updated
Was this helpful?
The environment variables can be configured in or with the .
Alternatively, the default NPM_TOKEN
and GH_TOKEN
can be easily .
.travis.yml
configuration for multiple Node.js jobsThis example is a minimal configuration for semantic-release with a build running Node 14 and 16. See for additional configuration options.
This example creates a release
that .
It's recommended to run the semantic-release
command in the so if an error occurs the build will fail and Travis will send a notification.
Note: It's not recommended to run the semantic-release
command in the Travis script
step as each script in this step will be executed regardless of the outcome of the previous one. See .
Advanced configuration: Running the tests in the script
step of the release
stage is not necessary as the previous stage(s) already ran them. To increase speed, the script
step of the release
stage can be overwritten to skip the tests. Note that other commands such as build or compilation might still be required.
package.json
configuration for multiple Node jobs.travis.yml
configuration for non-JavaScript projectsAdvanced configuration: Running the tests in the script
step of the release
stage is not necessary as the previous stage(s) already ran them. To increase speed, the script
step of the release
stage can be overwritten to skip the tests. Note that other commands such as build or compilation might still be required.
A package.json
is required only for semantic-release installation.
For projects that require to be tested with one or multiple version of a Non-JavaScript , optionally on multiple .
This recipe cover the Travis specifics only. See for more information on the semantic-release configuration.
This example is a minimal configuration for semantic-release with a build running . See for additional configuration options.
This example creates a release
that .
It's recommended to run the semantic-release
command in the so if an error occurs the build will fail and Travis will send a notification.
Note: It's not recommended to run the semantic-release
command in the Travis script
step as each script in this step will be executed regardless of the outcome of the previous one. See .