Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 1.43 KB

README.md

File metadata and controls

26 lines (22 loc) · 1.43 KB

Compiled Protos for JavaScript

Steps to publish:

  1. Create a Personal Access Token from Github with write/read/delete access to packages. Refer Creating a Personal Access Token for help.
  2. Create a copy of .npmrc.template as .npmrc.
  3. Replace in copied .npmrc file with your personal access token.
  4. Run npm publish to publish package to github packages.

NOTE: Always publish to your fork first, and only after testing it well, then after PR approval, publish it to hyperledger/cacti. To publish to your fork, modify in package.json:

...
"publishConfig": {
  "registry": "https://npm.pkg.github.com/<your-git-name>"
}

and then follow above 4 steps.

Steps to Use

  1. Create a Personal Access Token from Github with read access to packages. Refer Creating a Personal Access Token for help.
  2. Create a copy of .npmrc.template as .npmrc.
  3. Replace in copied .npmrc file with your personal access token.
  4. Now put this .npmrc file in your application in same level as package.json.
  5. Now you can run npm install @hyperledger/cacti-weaver-protos-js in your application directory to install the latest version.