Skip to content
Open
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
9 changes: 5 additions & 4 deletions .github/workflows/release-main-and-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
jobs:
check-release:
if: "!github.event.deleted"
runs-on: ubuntu-latest
runs-on: ["codebuild-agentcore-e2e-${{ github.run_id }}-${{ github.run_attempt }}", "verify-linux"]
permissions:
pull-requests: read
outputs:
Expand Down Expand Up @@ -52,8 +52,9 @@ jobs:

publish:
needs: verify
# npm provenance is only issued from GitHub-hosted runners.
runs-on: ubuntu-latest
# Trusted publishing works from this runner, provenance would not: npm only signs
# provenance on GitHub-hosted runners, and the org's hosted pool never picks this repo up.
runs-on: ["codebuild-agentcore-e2e-${{ github.run_id }}-${{ github.run_attempt }}", "verify-linux"]
environment:
name: npm-publish
url: https://www.npmjs.com/package/@aws/agentcore
Expand Down Expand Up @@ -112,7 +113,7 @@ jobs:
if npm view "@aws/agentcore@$VERSION" version >/dev/null 2>&1; then
echo "@aws/agentcore@$VERSION is already on npm, skipping publish"
else
npm publish "$TARBALL" --provenance --access public --tag "$DIST_TAG"
npm publish "$TARBALL" --access public --tag "$DIST_TAG"
fi

- env:
Expand Down
Loading