Skip to content

Fix release tagging #4646

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 3, 2023
Merged

Fix release tagging #4646

merged 1 commit into from
Oct 3, 2023

Conversation

frangio
Copy link
Contributor

@frangio frangio commented Oct 2, 2023

We're having an issue with automated releases where the tag that gets created in the process is not correctly assigned to the release commit (even though the rest of the release is all done correctly). We believe this is because npx changeset tag; git push --tags is either not creating the tag or not pushing it correctly, causing the subsequent createRelease API call in github-release.js to create the tag in the default branch. This PR removes the manual tagging and relies on createRelease by specifying the target_commitish option (docs here).

@frangio frangio requested a review from ernestognw October 2, 2023 21:43
@changeset-bot
Copy link

changeset-bot bot commented Oct 2, 2023

⚠️ No Changeset found

Latest commit: 2584434

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Member

@ernestognw ernestognw left a comment

Choose a reason for hiding this comment

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

Not sure if this will work, I think npx changeset tag write the changelog. And anyway, it looks very suspicious that we're removing the changeset command

@@ -147,16 +147,12 @@ jobs:
with:
name: ${{ github.ref_name }}
path: ${{ steps.pack.outputs.tarball }}
- name: Tag
run: npx changeset tag
Copy link
Member

Choose a reason for hiding this comment

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

Isn't this creating the actual changelog?

Copy link
Member

@ernestognw ernestognw left a comment

Choose a reason for hiding this comment

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

The changelog is done in the Changesets PR, so no issue

@frangio frangio merged commit 5d43060 into OpenZeppelin:master Oct 3, 2023
@frangio frangio deleted the fix-release-tag branch October 3, 2023 18:46
frangio added a commit that referenced this pull request Oct 3, 2023
(cherry picked from commit 5d43060)
@frangio frangio mentioned this pull request Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants