wgtechlabs/Package Build Flow Action

Automated NPM package versioning, building, and publishing with intelligent flow detection

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
registryTarget package registry (npm, github, or both)noboth
npm-tokenNPM access token (required if registry includes npm)no
npm-registry-urlNPM registry URLnohttps://registry.npmjs.org
github-tokenGitHub token for GitHub Packagesno${{ github.token }}
github-registry-urlGitHub Packages registry URLnohttps://npm.pkg.github.com
package-scopePackage scope for GitHub Packages (e.g., @myorg). If not provided and package is unscoped, automatically uses repository ownerno
main-branchName of main/production branchnomain
dev-branchName of development branchnodev
package-pathPath to package.json. Relative paths are resolved from the workflow workspace, and repository contents are checked out automatically when needed.no./package.json
build-scriptNPM script to run before publishingnobuild
package-managerPackage manager to use: npm, yarn, pnpm, bun, or auto (auto-detects from lockfile)noauto
version-prefixPrefix for version tagsno""
audit-enabledEnable package-manager-aware security scanning (npm audit or bun audit)notrue
audit-levelMinimum severity level for package-manager-aware security scanningnohigh
fail-on-auditFail build if vulnerabilities foundnofalse
pr-comment-enabledEnable PR comments with installation instructionsnotrue
pr-comment-templateCustom PR comment templateno
publish-enabledEnable publishing to registrynotrue
dry-runPerform dry run without publishingnofalse
accessPackage access level for scoped packages: public or restrictednopublic
monorepoEnable monorepo modenofalse
package-pathsComma-separated list of package.json paths (monorepo mode). Relative paths are resolved from the workflow workspace.no""
workspace-detectionAuto-detect workspaces from root package.jsonnotrue
changed-onlyOnly build/publish packages that changed relative to the event-specific git diff base (monorepo mode only)notrue
dependency-orderBuild packages in dependency order (topological sort) when workspace metadata is available (requires workspace-detection enabled with discovered packages); has no effect when using explicit package-paths without workspace discoverynotrue
commit-convention-enabledEnable smart build filtering based on commit message conventions. When enabled, only commits with build-relevant types (e.g., new, fix, update) trigger builds. Commits like docs or test changes are skipped.nofalse
commit-conventionCommit message convention to parse. Affects default trigger/skip type lists when not explicitly overridden. clean-commit uses types like new, update, setup; conventional uses feat, fix, perf, etc.noclean-commit
build-trigger-typesComma-separated commit types that trigger a package build. If a type appears in both trigger and skip lists, skip takes priority. Leave empty to use convention-aware defaults.no""
build-skip-typesComma-separated commit types that skip the package build. Skip list is checked before trigger list, so skip takes priority if a type appears in both. Leave empty to use convention-aware defaults.no""
bot-detectionAuto-detect bot actors (e.g., dependabot[bot], renovate[bot]) and gracefully fall back to validation-only mode (build and audit still run, publish is skipped). Prevents CI failures from missing secrets on bot-generated PRs.notrue
namedescription
package-versionGenerated package version
registry-urlsInstallation commands for each registry
build-flow-typeDetected flow type (release, pr, dev, patch, staging, wip, skip). Returns skip when the commit convention gate blocks the build.
short-shaShort commit SHA
npm-publishedWhether published to NPM (true/false)
github-publishedWhether published to GitHub Packages (true/false)
audit-completedWhether security audit completed
total-vulnerabilitiesTotal vulnerabilities found
critical-vulnerabilitiesCritical vulnerabilities count
high-vulnerabilitiesHigh vulnerabilities count
build-resultsJSON array of per-package build results (only populated in monorepo mode when monorepo: true)
discovered-packagesJSON array of discovered packages with name, version, path, and dir; when workspace-detection is not used this will be an empty array []
package-countNumber of discovered publishable packages; when workspace-detection is not used this will be 0
changed-packagesJSON array of packages with changes
changed-countNumber of changed packages
packages-publishedComma-separated list of successfully published package names (monorepo mode)
packages-failedComma-separated list of failed package names (monorepo mode)
total-packagesTotal number of packages processed (monorepo mode)
changed-packages-countNumber of packages with changes (monorepo mode)
commit-typeDetected commit type from the commit message (e.g., new, fix, docs). Only populated when commit-convention-enabled is true.
bot-detectedWhether a bot actor was detected (true/false). Only populated when bot-detection is enabled.
build-skip-reasonReason the build was skipped by the commit convention gate. Empty if the build proceeded (including validation-only mode from bot detection).
build-skippedWhether the build was fully skipped (true/false). True only when the commit convention gate blocks the build. Bot detection does not skip the build — it runs in validation-only mode instead.