holafly-shared-nodejs
v0.0.3
Published
shared modules/libraries for holafly
Readme
holafly-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-holafly-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)
@holafly:registry=https://europe-npm.pkg.dev/ingka-holafly-components-prod/box/
//europe-npm.pkg.dev/ingka-holafly-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-holafly-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
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.

