Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 540 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 540 Bytes

README:

The release-to-npm can be used to publish images to npm. The below pipeline configuration demonstrates simple usage:

EXAMPLE:

deploy_to_npm:  
  title: Publishing To Npm 
  image: codefresh/release-to-npm
  commands:
  - NPM_TOKEN=${{NPM_TOKEN}} npm run ci-publish 
  when:   
    branch: 
      only: [ master ]

Parameter Reference:

NPM_TOKEN : token of npm account

for get the token please see https://docs.npmjs.com/private-modules/ci-server-config#getting-an-authentication-token