Publish npm packages
rvs selects the correct Ravenstash publication target for the command it launches.
Publish through rvs
Section titled “Publish through rvs”With an authenticated rvs session, publish from the package directory without persisting a token:
rvs art select platform/releasesrvs npm publishInspect and publish
Section titled “Inspect and publish”Preview the tarball contents before uploading:
rvs art select platform/releasesrvs npm pack --dry-runrvs npm publishThe target determines the upload registry; no registry URL or token needs to be
committed to package.json or .npmrc.
Before uploading, rvs shows the destination and package and asks for
confirmation. Use rvs npm --rvs-yes publish only in a guarded automation job.
Verify the package
Section titled “Verify the package”- Confirm npm reports a successful publish.
- Open the package in Ravenstash and inspect the new version.
- Select the same repository target as described in Install npm packages.
- Install the exact version in a clean project.
Use npm directly
Section titled “Use npm directly”To run plain npm publish, mint a short-lived publish token:
RVS_NATIVE_TOKEN=$(rvs art token mint \ --target platform/releases \ --format npm \ --access publish)export RVS_NATIVE_TOKENPrint only the upload address or generate a complete npm publication recipe:
rvs art endpoint --target platform/releases --format npm --access publishrvs art native config npm --target platform/releases --access publishendpoint only prints the address. native config prints .npmrc and command
examples without writing files, minting a token, or running npm.
Copy the current upload address from Ravenstash and reference the token from
.npmrc:
//push.npm.rvsta.sh/platform/releases/:_authToken=${RVS_NATIVE_TOKEN}Point the package at the upload registry:
{ "publishConfig": { "registry": "https://push.npm.rvsta.sh/platform/releases/" }}npm publishDo not commit a resolved token value to .npmrc. See Use tokens with package
tools for expiry, access, and rotation details.

