Skip to content
Ingvord edited this page Apr 18, 2020 · 2 revisions

How to publish

  1. Setup GitHub registry: add //npm.pkg.github.com/:_authToken=${GITHUB_TOKEN} to ~/.npmrc

  2. Make sure package.json is up-to-date:

    • check version;
    • package name: @waltz-controls/middleware;
    • repository: git+https://github.com/waltz-controls/middleware.git
    • publishRegistry: https://npm.pkg.github.com/waltz-controls -OR- .npmrc has registry=https://npm.pkg.github.com/waltz-controls
  3. $> npm run clean
    $> npm run build
    $> npm publish
    
  4. [optional] git tag {VERSION} && git push --tags

Good output:

npm notice 
npm notice 📦  @waltz-controls/[email protected]
npm notice === Tarball Contents === 
npm notice 11.4kB LICENSE          
npm notice 27.7kB dist/index.esm.js
npm notice 947B   package.json     
npm notice 471B   README.md        
npm notice 176B   .travis.yml      
npm notice === Tarball Details === 
npm notice name:          @waltz-controls/middleware              
npm notice version:       1.2.1                                   
npm notice package size:  12.0 kB                                 
npm notice unpacked size: 40.6 kB                                 
npm notice shasum:        153c387a81449afbbde621c3144f1898b99cac65
npm notice integrity:     sha512-vNDK9z7O1OcvE[...]fdyZgfXEq/0/Q==
npm notice total files:   5                                       
npm notice 
+ @waltz-controls/[email protected]
Clone this wiki locally