rjmunro/Publish Preview Packages
Publish branch preview packages to GitHub Packages with content-based versioning and automatic cleanup
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Dec 11, 2025
- License
- MIT
Pinned Snippet
uses: rjmunro/publish-preview-packages@40a77dd3770c26d28703187add623c02d0e0a308 # no releases — HEAD as of 2026-07-11tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| registry | npm registry URL (default: GitHub Packages) | no | https://npm.pkg.github.com |
| registry-token | Authentication token for npm registry | yes | — |
| packages | Package 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-command | Command to build packages (default: yarn build) | no | yarn build |
| max-versions | Maximum preview versions to keep per package | no | 150 |
| min-age-days | Minimum age in days before a version can be deleted | no | 30 |
| skip-build | Skip the build step (assumes packages are already built) | no | false |
Outputs
| name | description |
|---|---|
| published-packages | JSON array of published package info with names, versions, and tags |