-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Fix release tagging #4646
Conversation
|
There was a problem hiding this 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this 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
(cherry picked from commit 5d43060)
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 subsequentcreateRelease
API call ingithub-release.js
to create the tag in the default branch. This PR removes the manual tagging and relies oncreateRelease
by specifying thetarget_commitish
option (docs here).