Skip to content
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

Change prerelease versioning #10975

Merged
merged 1 commit into from
Sep 3, 2020
Merged

Change prerelease versioning #10975

merged 1 commit into from
Sep 3, 2020

Conversation

weshaggard
Copy link
Member

  • Use alpha instead of dev
  • Use beta instead of preview

Updating versioning logic to match guideline update in Azure/azure-sdk#1536.

PTAL @ramya-rao-a @xirzec @praveenkuttappan

@weshaggard
Copy link
Member Author

/home/vsts/work/1/s/sdk/template/template/package.json
  3:14  error  unrecognized version syntax: beta.1  @azure/azure-sdk/ts-versioning-semver

@sadasant @KarishmaGhiya any ideas why eslint is complaining about this semver?

@praveenkuttappan
Copy link
Member

@ramya-rao-a
Copy link
Contributor

The actual rule is a few lines below in https://github.com/Azure/azure-sdk-for-js/blob/master/common/tools/eslint-plugin-azure-sdk/src/rules/ts-versioning-semver.ts#L67

Updating the regex there should fix the problem

@ramya-rao-a
Copy link
Contributor

@weshaggard The linter has been updated in #10986 to allow all 4 options of preview, beta, dev and alpha. Can you you revert your commit? We need to support "preview" until all the current previews move to beta which will take a while

cc @deyaaeldeen

@@ -48,7 +48,7 @@ const commitChanges = async (rushPackages, package) => {
const updatePackageVersion = (rushPackages, package, buildId) => {
const currentVersion = rushPackages[package].json.version;
const parsedVersion = semver.parse(currentVersion);
rushPackages[package].newVer = `${parsedVersion.major}.${parsedVersion.minor}.${parsedVersion.patch}-dev.${buildId}`;
rushPackages[package].newVer = `${parsedVersion.major}.${parsedVersion.minor}.${parsedVersion.patch}-alpha.${buildId}`;
Copy link
Member

Choose a reason for hiding this comment

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

@weshaggard is buildId here still a date? is this what we want?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes see the guidance at https://azure.github.io/azure-sdk/policies_releases.html#javascript. The alpha builds will still be date based.

@weshaggard
Copy link
Member Author

@weshaggard The linter has been updated in #10986 to allow all 4 options of preview, beta, dev and alpha. Can you you revert your commit? We need to support "preview" until all the current previews move to beta which will take a while

I will sync his changes and fix the one issue about the version number needing to be date based.

- Use alpha instead of dev
- Use beta instead of preview
@weshaggard weshaggard requested a review from a team as a code owner September 2, 2020 23:18
@deyaaeldeen
Copy link
Member

@weshaggard I fixed the issue with alpha versions in the linter here: #10998.

@weshaggard
Copy link
Member Author

@deyaaeldeen thanks I will remove that from my PR then.

@weshaggard weshaggard merged commit 2ffbee9 into master Sep 3, 2020
@weshaggard weshaggard deleted the TestAlphaBeta branch September 3, 2020 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants