rjmunro/Publish Preview Packages

Publish branch preview packages to GitHub Packages with content-based versioning and automatic cleanup

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Dec 11, 2025
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: rjmunro/publish-preview-packages@40a77dd3770c26d28703187add623c02d0e0a308 # no releases — HEAD as of 2026-07-11

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

namedescriptionrequireddefault
registrynpm registry URL (default: GitHub Packages)nohttps://npm.pkg.github.com
registry-tokenAuthentication token for npm registryyes
packagesPackage paths to publish (one per line, relative to repository root). Examples: '.', 'packages/shared-lib', 'apps/worker' If empty, auto-discovers packages in 'packages/' directory or publishes root if it has package.json no""
build-commandCommand to build packages (default: yarn build)noyarn build
max-versionsMaximum preview versions to keep per packageno150
min-age-daysMinimum age in days before a version can be deletedno30
skip-buildSkip the build step (assumes packages are already built)nofalse
namedescription
published-packagesJSON array of published package info with names, versions, and tags