b2b-core-libs-nodejs
v1.0.0
Published
core libraries for framework
Readme
b2b-core-libs-nodejs
This project is a monorepo using npm workspaces (lerna free). Contains some core libraries used in our nodejs API projects (including the new version of the framework)
Publishing a package
The packages are published at ingka-b2b-components-prod project.
Steps
- authenticate
- go to the package folder
- set version
- publish
Authenticate to publish
Add the following lines you your home's .npmrc (this will be necessary to consum the modules as well)
@box:registry=https://europe-npm.pkg.dev/ingka-b2b-components-prod/box/
//europe-npm.pkg.dev/ingka-b2b-components-prod/box/:_authToken=""Now you need an auth token to publish them so let's change your gcp project and get this token:
gcloud auth login
gcloud config set project ingka-b2b-components-prod
npx google-artifactregistry-authSet version
Change the version of the package you want to publish with npm version XXXX
where XXXX:
- major
- minor
- patch
- premajor
- preminor
- prepatch
If you want to publish a beta, change the version manually in your package.json: add beta.x (where x is a number).
For example, if your package is in 1.0.0 version, you could publish the 1.0.1-beta.1.
If you need to make some changes after this publication, change the version to 1.0.1-beta.2, then 1.0.1-beta.3, ... and when your module is ready, just left 1.0.1 as version.
Publish
Be sure you are in the package folder and just type: npm publish
If yo want to publish a beta version, type npm publish --tag beta instead. Remember to first establish the version in the package.json.

