💡
Continuous Integrations for NPM Publish
  • README
  • Github Actions
  • Travis CI
  • Gitlab CI
  • Wercker
  • Bitbucket Pipelines
  • CircleCI
  • Contributor Covenant Code of Conduct
  • Contributing
Powered by GitBook
On this page
  • Create file config:
  • Copy the content and paste in .travis.yml
  • Example Projects

Was this helpful?

Travis CI

PreviousGithub ActionsNextGitlab CI

Last updated 5 years ago

Was this helpful?

[Site](https://travis-ci.com/) | [Example](examples/.travis.yml)

Create file config:

touch .travis.yml

Copy the content and paste in .travis.yml

language: node_js
node_js:
  - "10"
cache: yarn

install: yarn
script:
  - echo "Not found tests"

jobs:
  include:
    - stage: npm release
      if: tag IS present
      node_js: "10"
      script: yarn build
      deploy:
        provider: npm
        api_key: $NPM_TOKEN
        skip_cleanup: true
        on:
          tags: true

Example Projects

If you use this CI format, enter your project here.

Travis CI logo