Skip to content

Request: Create a tag with just major version #5

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

Open
MaxAnderson95 opened this issue Jan 22, 2025 · 0 comments
Open

Request: Create a tag with just major version #5

MaxAnderson95 opened this issue Jan 22, 2025 · 0 comments

Comments

@MaxAnderson95
Copy link

The standard convention that most GitHub actions use is to create and keep updating an additional git tag that points to the most recent release in that major version, using simply the major version of that release as the tag value. This allows consumers of the action to simply reference it like this:

- name: Use an action
   uses: cloudsmith-io/cloudsmith-cli-action@v1
   with:
      ...

rather than the full symver:

- name: Use an action
   uses: cloudsmith-io/[email protected]
   with:
      ...

The benefit is they can receive updates to this action over time without needing to explicitly update their action manifests. As long as the action's releases follow symver semantics, and that breaking changes result in a new major version (ex. @v2) then this should be okay.

Could a step be added to the release pipeline of cloudsmith-io/cloudsmith-cli-action be added that force pushes a tag with the major version?

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

No branches or pull requests

1 participant