@cal3574/shared-utils-link-vault

v1.0.11

Published

Reusable utility functions for Node.js and TypeScript projects.

Readme

Simple release & publish (npmjs)

  1. Commit your changes

    git add . && git commit -m "chore: update"

  2. Build

    npm run build

  3. 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"

  4. Push commit + tag

    git push origin main --follow-tags

  5. 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_TOKEN and 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.

  6. 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/.