Skip to content

fix(aws-lambda): Skip layer publication for pre-release versions#714

Merged
BYK merged 1 commit intomasterfrom
fix/aws-lambda-skip-prereleases
Jan 14, 2026
Merged

fix(aws-lambda): Skip layer publication for pre-release versions#714
BYK merged 1 commit intomasterfrom
fix/aws-lambda-skip-prereleases

Conversation

@BYK
Copy link
Member

@BYK BYK commented Jan 13, 2026

Summary

  • Skip AWS Lambda layer publication for pre-release versions by default
  • Adds early check in publish() to return before any artifact fetching or layer publishing for prereleases
  • Respects existing linkPrereleases config option to allow prerelease publishing when explicitly enabled
  • Adds tests for the new prerelease skipping behavior

This aligns the publish behavior with the existing isPushableToRegistry logic which already skips registry updates for prereleases.

Fixes #609.

AWS Lambda layers should not be published for pre-release versions by
default, consistent with the existing isPushableToRegistry behavior that
skips registry updates for prereleases.

This adds an early check in the publish method to skip the entire layer
publication process for pre-release versions unless linkPrereleases is
explicitly set to true in the configuration.
@github-actions
Copy link
Contributor

github-actions bot commented Jan 13, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


Bug Fixes 🐛

  • (aws-lambda) Skip layer publication for pre-release versions by BYK in #714
  • (docker) Add GITHUB_API_TOKEN and x-access-token fallbacks for ghcr.io by BYK in #710

🤖 This preview updates automatically when you update the PR.

@BYK BYK requested a review from andreiborza January 13, 2026 14:25
@BYK BYK marked this pull request as ready for review January 13, 2026 14:25
@BYK BYK enabled auto-merge (squash) January 13, 2026 14:25
Copy link
Member

@andreiborza andreiborza left a comment

Choose a reason for hiding this comment

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

This'll make our (sdk maintainers) lives so much easier, thanks for taking care of this @BYK 😃

@BYK BYK merged commit ec24326 into master Jan 14, 2026
17 checks passed
@BYK BYK deleted the fix/aws-lambda-skip-prereleases branch January 14, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Skip publishing lambda layers for pre-releases

2 participants