Skip to content

ci: push the release with a deploy key - #43

Merged
Mearman merged 1 commit into
mainfrom
ci/release-deploy-key
Oct 31, 2026
Merged

Mearman merged 1 commit into
mainfrom
ci/release-deploy-key

Conversation

@Mearman

@Mearman Mearman commented Oct 31, 2026

Copy link
Copy Markdown
Owner

A required-checks ruleset on main rejects a release commit pushed with the job token or an app token, and neither can be a bypass actor. The release job now provisions a write deploy key from the release environment (limited to main), points origin at the SSH URL so semantic-release pushes with it, and removes the key afterwards, as combinatrix, claude-code-action and dependency-heal do. The key and the ruleset's DeployKey bypass are already in place. The pull request's merge is the first release through it.

The release step passes --repository-url with the SSH URL, because semantic-release pushes to its repositoryUrl (by default package.json's https repository field), not to origin.

A required-checks ruleset on main rejects a release commit pushed with the job
token or an app token, and neither can be a bypass actor. The release job now
provisions a deploy key from the release environment, points origin at the
remote over ssh so semantic-release pushes with it, and removes the key
afterwards, as combinatrix, claude-code-action and dependency-heal do.
@Mearman
Mearman enabled auto-merge (rebase) October 31, 2026 11:14
@Mearman
Mearman merged commit dccbc9e into main Oct 31, 2026
8 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.4.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@Mearman
Mearman deleted the ci/release-deploy-key branch October 31, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant