Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 23 additions & 7 deletions .github/workflows/prerelease-tarball.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,38 @@ jobs:
- name: Get tarball info
id: tarball
run: |
TARBALL_NAME=$(ls *.tgz | head -1 | xargs basename)
echo "name=$TARBALL_NAME" >> $GITHUB_OUTPUT
GA_TARBALL=$(ls *-[0-9]*[0-9].tgz 2>/dev/null | grep -v preview | head -1 | xargs basename)
PREVIEW_TARBALL=$(ls *preview*.tgz | head -1 | xargs basename)
echo "ga_name=$GA_TARBALL" >> $GITHUB_OUTPUT
echo "preview_name=$PREVIEW_TARBALL" >> $GITHUB_OUTPUT
echo "GA tarball: $GA_TARBALL"
echo "Preview tarball: $PREVIEW_TARBALL"
- name: Create or update prerelease
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
TARBALL_NAME: ${{ steps.tarball.outputs.name }}
GA_TARBALL: ${{ steps.tarball.outputs.ga_name }}
PREVIEW_TARBALL: ${{ steps.tarball.outputs.preview_name }}
run: |
TAG="prerelease"

# Delete existing release if it exists (to update the tarball)
# Delete existing release if it exists (to update the tarballs)
gh release delete "$TAG" --yes --cleanup-tag 2>/dev/null || true

# Create a new pre-release with the tarball
# Create a new pre-release with both tarballs
gh release create "$TAG" \
"${TARBALL_NAME}" \
"${GA_TARBALL}" \
"${PREVIEW_TARBALL}" \
--title "Prerelease" \
--notes "Auto-generated tarball from the latest commit on main." \
--notes "Auto-generated tarballs from the latest commit on main.

**GA build** (no harness features):
\`\`\`
npm install -g https://github.com/aws/agentcore-cli/releases/download/prerelease/${GA_TARBALL}
\`\`\`

**Preview build** (harness features enabled):
\`\`\`
npm install -g https://github.com/aws/agentcore-cli/releases/download/prerelease/${PREVIEW_TARBALL}
\`\`\`" \
--prerelease \
--target "${{ github.sha }}"
2 changes: 1 addition & 1 deletion integ-tests/dev-server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ describe('integration: dev server', () => {
devProcess.kill('SIGTERM');
devProcess = null;
},
30000
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this an unrelated fix? I saw this timing out so I think its welcome.

60000
);

it.skipIf(!hasNpm || !hasGit || !hasUv)(
Expand Down
Loading