To use this library as an npm package, you need to be logged in to the GitHub Packages npm registry.
- Create a personal access token with at least
read:packagesprivileges. - Login to the GitHub npm registry with
npm login --registry https://npm.pkg.github.com. - Have the source of the library specified with
@chromoskein:registry=https://npm.pkg.github.comin your.npmrc. - Then use and install like normal
npm install @chromoskein/lib-graphics.
To contribute to the library while working on your own project, use the npm link command, or an alternative from your package manager.
Then you can just watch-compile the library and use it normally in your project.
If you wish to publish a new version of the library, you need a personal access token with at least delete:packages, repo, and write:packages.
Authenticate with the said token as normal, and use yarn publish.
Provide a new version (package.json will be updated later for you), and it will be successfully published.