💡
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 wercker.yml
  • Example Projects

Was this helpful?

Wercker

PreviousGitlab CINextBitbucket Pipelines

Last updated 5 years ago

Was this helpful?

[Site](https://app.wercker.com/) | [Example](examples/wercker.yml)

Create file config:

touch wercker.yml

Copy the content and paste in wercker.yml

box: node

build:
  steps:
    - script:
      name: install dependencies
      code: |
        yarn install

    - script:
      name: build project
      code: |
        yarn build

    - script:
      name: publish
      code: |
        echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
        npm publish

Example Projects

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

Wercker logo