feat(scripts): extend bundle to support injectable output and version suffix#1389
Merged
Merged
Conversation
Contributor
Package TarballHow to installgh release download pr-1389-tarball --repo aws/agentcore-cli --pattern "*.tgz" --dir /tmp/pr-tarball
npm install -g /tmp/pr-tarball/aws-agentcore-0.15.0.tgz |
Contributor
|
Claude Security Review: the review run failed before completing. See the run for details. |
Hweinstock
added a commit
to Hweinstock/agentcore-cli
that referenced
this pull request
May 27, 2026
Hweinstock
added a commit
to Hweinstock/agentcore-cli
that referenced
this pull request
May 27, 2026
Hweinstock
added a commit
to Hweinstock/agentcore-cli
that referenced
this pull request
May 27, 2026
Hweinstock
added a commit
to Hweinstock/agentcore-cli
that referenced
this pull request
May 27, 2026
Hweinstock
added a commit
to Hweinstock/agentcore-cli
that referenced
this pull request
May 27, 2026
Hweinstock
added a commit
to Hweinstock/agentcore-cli
that referenced
this pull request
May 27, 2026
Hweinstock
added a commit
to Hweinstock/agentcore-cli
that referenced
this pull request
May 27, 2026
Hweinstock
added a commit
to Hweinstock/agentcore-cli
that referenced
this pull request
May 27, 2026
Hweinstock
added a commit
to Hweinstock/agentcore-cli
that referenced
this pull request
May 27, 2026
Hweinstock
added a commit
to Hweinstock/agentcore-cli
that referenced
this pull request
May 27, 2026
Hweinstock
added a commit
that referenced
this pull request
May 27, 2026
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
We extend
scripts/bundle.mjsand the prerelease workflow to support injectable tarball output paths and version suffixes via environment variables (AGENTCORE_TARBALL_OUTPUT,AGENTCORE_TARBALL_VERSION_SUFFIX).The prerelease workflow now publishes the prerelease artifacts to a static url that includes the commit hash for both repositories.
This allows developers to set a local alias to the static url for easy downloads. The url is currently
https://github.com/aws/agentcore-cli/releases/download/prerelease/aws-agentcore-0.15.0-20260526224648.tgz(changes on each commit), but will behttps://github.com/aws/agentcore-cli/releases/download/prerelease/agentcore-cli-prerelease.tgzand should auto update on each push to main.Additionally, the version number describes the commit this was built from (both CDK and CLI) to make sanity checks easier.
Notes
In testing I noticed github is having availability issues causing clone to hang. This will stop the workflow from working in CI.
I tested locally by pointing to a local instance of the CDK repo, and disabling the
git pull origincall.Related Issue
Closes #
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 snapshotsChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.