phucbm/Publish NPM Package on Release

Automatically build, test, and publish NPM packages when a GitHub release is published

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Apr 28, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: phucbm/publish-npm-action@0e5a33a36111a370d6c7e85f4467580f5222de46 # v1.0.16

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

namedescriptionrequireddefault
npm-tokenNPM authentication token. Leave empty to use OIDC trusted publishing instead.no""
github-tokenGitHub token for repository accessno${{ github.token }}
node-versionNode.js version to useno20
pnpm-versionPNPM version to useno8
build-commandBuild command to runnopnpm build
install-commandInstall command to runnopnpm install --no-frozen-lockfile
test-commandTest command to runnopnpm test
publish-accessNPM publish access levelnopublic
skip-testsSkip running tests even if test script existsnofalse
output-dirOutput directory for built files (e.g., dist, build, lib)nodist/
target-branchBranch to push updated files tonomain
commit-filesAdditional files/patterns to commit (space-separated)no""
namedescription
package-nameName of the published package
versionVersion that was published
npm-urlNPM package URL
tests-runWhether tests were executed