Skip to content

Remove preview label from marketplace #4464

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 7 commits into from
Mar 23, 2023
Merged

Conversation

andyleejordan
Copy link
Member

@andyleejordan andyleejordan commented Mar 17, 2023

This was a lot of annoying work just to remove the preview label from the marketplace web page, since it shows from the "latest" (inclusive of pre-release) releases. Our only other way to determine at package and release time that a version is a pre-release is to re-use the version-from-changelog logic of the release tools. But that meant splitting out the relevant parts so the build script didn't take a dependency on the PowerShellForGitHub module, and splitting the CI into a "build and package" step separate from a "test" step. The latter happened because in CI we test against PowerShell 5.1...and that doesn't have the semver type, so it couldn't use the version logic, hence the "build and package" step now requires PowerShell Core. 🙃

But hey, at least I snuck in a fix for a long-standing TODO to better validate the version number we hand to the release tools when doing a release.

@andyleejordan andyleejordan added the Ignore Exclude from the changelog. label Mar 17, 2023
@andyleejordan andyleejordan force-pushed the andschwa/no-preview branch 3 times, most recently from 1b2cf5e to 55f98e1 Compare March 22, 2023 23:23
We were using this as an easy way to determine if the version is a pre-release.
However, the marketplace always looks a the latest version meaning it was
placing a "preview" label and our preview icon on the webpage.

So we had to write a different way to determine if the extension is a pre-release.
@andyleejordan andyleejordan force-pushed the andschwa/no-preview branch 3 times, most recently from c6f8c4c to 394209f Compare March 23, 2023 00:07
@andyleejordan andyleejordan marked this pull request as ready for review March 23, 2023 00:16
@andyleejordan andyleejordan requested a review from a team March 23, 2023 00:16
@andyleejordan andyleejordan requested a review from a team as a code owner March 23, 2023 00:16
So the GitHub module isn't required.
Since it's required in order to use our version tools.
@andyleejordan andyleejordan added Issue-Enhancement A feature request (enhancement). Area-Build & Release and removed Ignore Exclude from the changelog. labels Mar 23, 2023
Since I do actually plan to use it to preview a PSReadLine preview.
Copy link
Collaborator

@SeeminglyScience SeeminglyScience left a comment

Choose a reason for hiding this comment

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

Lookin' good, just one request and one optional nit

Copy link
Collaborator

@SeeminglyScience SeeminglyScience left a comment

Choose a reason for hiding this comment

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

LGTM!

@andyleejordan andyleejordan enabled auto-merge March 23, 2023 19:51
@andyleejordan andyleejordan merged commit f5516b0 into main Mar 23, 2023
@andyleejordan andyleejordan deleted the andschwa/no-preview branch March 23, 2023 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Build & Release Issue-Enhancement A feature request (enhancement).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants