lfreleng-actions/🚀 Node.js Package Publish

Stamps a version into package.json and publishes the package to an npm registry

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 9, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: lfreleng-actions/node-publish-action@edbfa68ff0f9a87924ce4382053398188d1fc335 # v0.0.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
publish_versionVersion to stamp and publish, such as '1.2.3' or '1.2.3-SNAPSHOT'; characters 0-9 A-Z a-z . -yes—
registry_urlTarget npm registry URL ending with '/'; required unless dry_run is 'true'; characters A-Z a-z 0-9 . : / _ -no""
dry_runPack and verify without registry interaction ('true'/'false'); skips credential setupnofalse
path_prefixProject directory; must resolve within the workspaceno.
node_versionNode.js version to set up, such as '22', '22.x' or 'lts/*'; characters A-Z a-z 0-9 . * / _ -no22
node_version_fileFile containing the Node.js version, such as '.nvmrc'; takes precedence over node_version; must resolve within the workspaceno""
tagnpm distribution tag; characters A-Z a-z 0-9 . _ -nolatest
accessPackage access: 'public', 'restricted' or unsetno""
provenanceGenerate registry-native provenance ('true'/'false'); needs a registry with Sigstore provenance support (npmjs.org) plus OIDC; Nexus lacks supportnofalse
nexus_userRegistry username (default: calling repository name)no""
nexus_passwordRegistry password/token; required for non-dry-run publishes unless load_credential is 'true'no""
load_credentialFetch the password from 1Password via credential-load-action ('true'/'false')nofalse
vault_mapping_jsonJSON mapping repository owner to 1Password vault (used when load_credential is 'true')no""
op_service_account_token1Password service account token (used when load_credential is 'true')no""
scopenpm scope for the auth entry (for example '@onap')no""
namedescription
published_versionVersion stamped into package.json and published
package_namePackage name from the publish metadata
tarball_nameTarball filename from the publish metadata