Skip to content

Add function: Get next module/script version #8

@RamblingCookieMonster

Description

@RamblingCookieMonster

Potential names: Get-NextPSGalleryModuleVersion, Get-NextPSGalleryScriptVersion

Because who doesn't love long names!

Input: Module name, PSRepository

Use Find-Module to find the next version. Stick to user's scheme (x.x.x vs. x.x.x.x, even if the latter doesn't comply with semver).

Example use case: Many examples for bumping module version just bump the psd1. That works for a single deployment. Next deployment, unless you committed that change, the psd1 remains the same and your deployment fails. Ideally, you get the PSGallery version, bump that, and set the psd1. Caveat: the source file will get out of date.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions