Skip to content

Commit 0f00992

Browse files
Instruct the release script to tag the commit on the release branch. It was previously left unspecified, resulting on a tag on the main branch. (#2322)
1 parent d327c4d commit 0f00992

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/release-scripts/create-release.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,13 @@ module.exports = async ({
4444
isDryRun,
4545
// Release manifest file path
4646
releaseManifestPath,
47+
// The commit-like reference that we want to release (e.g. a commit SHA or a branch name)
48+
releaseCommitish,
4749
}) => {
4850
assert(github !== undefined, "The `github` argument is required");
4951
assert(isDryRun !== undefined, "The `isDryRun` argument is required");
5052
assert(releaseManifestPath !== undefined, "The `releaseManifestPath` argument is required");
53+
assert(releaseCommitish !== undefined, "The `releaseCommitish` argument is required");
5154

5255
console.info(`Starting GitHub release creation with isDryRun: ${isDryRun}, and releaseManifestPath: '${releaseManifestPath}'`);
5356

@@ -74,6 +77,7 @@ module.exports = async ({
7477
name: releaseManifest.name,
7578
body: releaseManifest.body,
7679
prerelease: releaseManifest.prerelease,
80+
target_commitish: releaseCommitish,
7781
});
7882
console.info(`SUCCESS: Created release with ID: ${response.data.id}, URL: ${response.data.html_url} `);
7983
} else {

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ jobs:
184184
github,
185185
isDryRun: ${{ inputs.dry_run }},
186186
releaseManifestPath: "smithy-rs-release/smithy-rs-release-manifest.json"
187+
releaseCommitish: ${{ needs.upgrade-gradle-properties.outputs.release_branch }},
187188
});
188189
- name: Publish to crates.io
189190
shell: bash

0 commit comments

Comments
 (0)