@cal3574/shared-utils-link-vault
v1.0.11
Published
Reusable utility functions for Node.js and TypeScript projects.
Readme
Simple release & publish (npmjs)
Commit your changes
git add . && git commit -m "chore: update"
Build
npm run build
Bump version (creates commit + tag)
patch / minor / major
npm version patch -m "chore(release): v%s"
or
npm version minor -m "chore(release): v%s"
npm version major -m "chore(release): v%s"
Push commit + tag
git push origin main --follow-tags
Ensure npm authentication
Verify you are logged into npmjs (public registry)
npm whoami --registry=https://registry.npmjs.org/ || npm login --registry=https://registry.npmjs.org/
If using CI, set an environment variable
NPM_TOKENand use an npmrc entry like://registry.npmjs.org/:_authToken=${NPM_TOKEN}
NEVER commit a token into the repo. Put a project-level .npmrc in CI only or use the CI provider's secret store.
Publish
npm publish --access public --registry=https://registry.npmjs.org/
Verify:
npm view @cal3574/shared-utils-link-vault versions --registry=https://registry.npmjs.org/
Install (consumer):
npm install @cal3574/shared-utils-link-vault
Notes:
- This package is published to npmjs.org for public, tokenless consumption by consumers.
- If you need to publish to GitHub Packages instead, follow the project docs but note that GitHub Packages requires authenticating to https://npm.pkg.github.com/.