Since the packages are stored into Github Packages, you have to follow a few more steps to make it work.
- In a command line, type
npm login --registry=https://npm.pkg.github.com/ --scope=@derniercri-
Add a
.npmrcfile to your project, that contains@derniercri:registry=https://npm.pkg.github.com
-
Install the desired package
yarn add @derniercri/YOUR_PACKAGEInstead of using project's .npmrc file, you can edit your ~/.npmrc and add/edit these lines :
//npm.pkg.github.com/:_authToken=YOUR_TOKEN
@derniercri:registry=https://npm.pkg.github.com
If you want to release a new version, just run
yarn releaseIt will prompt you with several questions and at the end, it will push a new version to Github.