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

Add preid support in publish script #434

Merged
merged 1 commit into from
Aug 15, 2023
Merged

Conversation

pololi-stripe
Copy link
Contributor

Summary & motivation

Add preid support in publish script

API review

Copy this template or link to an API review issue.

Testing & documentation

❯ ./scripts/publish -h        
USAGE:
    ./scripts/publish <release_type> <pre_id>

ARGS:
    <release_type>
            A Semantic Versioning release type used to bump the version number. Either "patch", "minor", "major", "prepatch", "preminor", "premajor", or "prerelease".
    <pre_id>
            Adds an identifier to be used to prefix premajor, preminor, prepatch or prerelease version increments. Either "alpha" or "beta".

❯ ./scripts/publish patch beta
Invalid RELEASE_TYPE. It should be one of: 'prepatch', 'preminor', 'premajor', 'prerelease',  when PREID is set

USAGE:
    ./scripts/publish <release_type> <pre_id>

ARGS:
    <release_type>
            A Semantic Versioning release type used to bump the version number. Either "patch", "minor", "major", "prepatch", "preminor", "premajor", or "prerelease".
    <pre_id>
            Adds an identifier to be used to prefix premajor, preminor, prepatch or prerelease version increments. Either "alpha" or "beta".

❯ ./scripts/publish minor beta
Invalid RELEASE_TYPE. It should be one of: 'prepatch', 'preminor', 'premajor', 'prerelease',  when PREID is set

USAGE:
    ./scripts/publish <release_type> <pre_id>

ARGS:
    <release_type>
            A Semantic Versioning release type used to bump the version number. Either "patch", "minor", "major", "prepatch", "preminor", "premajor", or "prerelease".
    <pre_id>
            Adds an identifier to be used to prefix premajor, preminor, prepatch or prerelease version increments. Either "alpha" or "beta".

❯ ./scripts/publish prerelease delta
Invalid PREID. It should be either 'alpha' or 'beta'

USAGE:
    ./scripts/publish <release_type> <pre_id>

ARGS:
    <release_type>
            A Semantic Versioning release type used to bump the version number. Either "patch", "minor", "major", "prepatch", "preminor", "premajor", or "prerelease".
    <pre_id>
            Adds an identifier to be used to prefix premajor, preminor, prepatch or prerelease version increments. Either "alpha" or "beta".

❯ yarn version --prerelease --preid alpha
yarn version v1.22.19
info Current version: 2.1.2
info New version: 2.1.3-alpha.0
✨  Done in 0.70s.

@pololi-stripe
Copy link
Contributor Author

👋 @bmathews-stripe , I saw you added prerelease #293. Could you help review my change to add pre_id support? Thank you!

@pololi-stripe pololi-stripe merged commit b516a5e into master Aug 15, 2023
2 checks passed
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.

2 participants