Skip to content

Fix GitHub releases of vscode-mdx#369

Merged
remcohaszing merged 2 commits intomainfrom
fix-changesets-vscode-release
Dec 14, 2023
Merged

Fix GitHub releases of vscode-mdx#369
remcohaszing merged 2 commits intomainfrom
fix-changesets-vscode-release

Conversation

@remcohaszing
Copy link
Copy Markdown
Member

Initial checklist

  • I read the support docs
  • I read the contributing guide
  • I agree to follow the code of conduct
  • I searched issues and couldn’t find anything (or linked relevant results below)
  • If applicable, I’ve added docs and tests

Description of changes

The solution is based on
https://github.com/statelyai/xstate-tools/blob/8a5df5db0e96e097b51e58280ae6405f2a0f9f94/scripts/tag-extension.js

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Dec 14, 2023

⚠️ No Changeset found

Latest commit: 580eb95

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

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Dec 14, 2023
@remcohaszing
Copy link
Copy Markdown
Member Author

@Andarist Does this look right to you?

This messes with the fixture tests.
npm pack --pack-destination "$PWD" --workspace @mdx-js/language-server
npx --workspace vscode-mdx vsce package --out "$PWD"

node scripts/tag-extension.mjs
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd probably tag after creating a successful release (if only you could easily differentiate between that and a failure)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I don’t really understand why. Tags are already created succesfully. Also I don’t see this in xstate-tools.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe there is some reason why xstate-tools does it this way. I honestly don't remember ;p It's just my intuition that a tag should be created after releasing and not before it. This is the order in which Changesets does things when it deals with npm publishing: https://github.com/changesets/changesets/blob/93ee679537fb43111c29359fe6c82164b359e4d1/packages/cli/src/commands/publish/index.ts#L90-L102

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Let’s find out then.

@Andarist
Copy link
Copy Markdown
Contributor

I briefly looked at this and LGTM

@remcohaszing remcohaszing merged commit f7ac84b into main Dec 14, 2023
@remcohaszing remcohaszing deleted the fix-changesets-vscode-release branch December 14, 2023 16:37
@github-actions
Copy link
Copy Markdown
Contributor

Hi! This was closed. Team: If this was merged, please describe when this is likely to be released. Otherwise, please add one of the no/* labels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤞 phase/open Post is being triaged manually

Development

Successfully merging this pull request may close these issues.

2 participants