Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
897

Publish an NPM package npm-publish

Publish an NPM package to the NPM registry.

arguments

  • DIR - Directory to publish from
  • NPM_TOKEN - token of npm account (required)
    deploy_to_npm:
  type: npm-publish
  arguments:
    NPM_TOKEN: '${{NPM_TOKEN}}'
    DIR: '${{MY_GITHUB_REPO_NAME}}'

  
github.com
Jakob Stuart
Jul 4, 2021