feat: add PR tarball workflow with direct download link#576
Merged
aidandaly24 merged 4 commits intomainfrom Mar 19, 2026
Merged
feat: add PR tarball workflow with direct download link#576aidandaly24 merged 4 commits intomainfrom
aidandaly24 merged 4 commits intomainfrom
Conversation
On every PR, the build workflow now also runs `npm pack` and uploads the resulting tarball as a GitHub Release asset. A sticky comment is posted on the PR with a direct download link and a one-liner npm install command. The temporary release is automatically cleaned up when the PR is closed or merged. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Coverage Report
|
Contributor
Package Tarballaws-agentcore-0.3.0-preview.6.0.tgz How to installnpm install https://github.com/aws/agentcore-cli/releases/download/pr-576-tarball/aws-agentcore-0.3.0-preview.6.0.tgz |
Removes the cleanup-pr-tarball job so tarball releases persist after PR close. This allows testing packages from old/closed PRs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Runs daily at midnight UTC. Deletes PR tarball releases (and their tags) older than 7 days. Can also be triggered manually. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds an automated tarball workflow to the existing
build-and-test.ymlCI pipeline. On every PR:npm packcreates a.tgztarballpr-<number>-tarball)npm installcommandThis allows reviewers and testers to easily try out changes from any PR without cloning the branch — just copy the
npm install <url>command from the PR comment.What changed in
build-and-test.ymlclosedtopull_requestevent types (needed for cleanup)if: github.event.action != 'closed'guard on thebuildandcoveragejobs so they don't run on PR closenpm pack+upload-artifactsteps to the build matrix (Node 20.x only)pr-tarballjob: downloads artifact, creates a GitHub pre-release with the tarball, posts sticky PR commentcleanup-pr-tarballjob: deletes the temporary release/tag when the PR is closedTested on
Verified end-to-end on jesseturner21/tarball-workflow-test#1 — build, release creation, PR comment with direct download link, and
npm install <url>all work correctly.Related Issue
N/A — workflow improvement
Documentation PR
N/A
Type of Change
Testing
How have you tested the change?
npm run test:unitandnpm run test:integnpm run typechecknpm run lintsrc/assets/, I rannpm run test:update-snapshotsand committed the updated snapshotsWorkflow tested end-to-end on a test repo: jesseturner21/tarball-workflow-test#1
Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.