Skip to content

Add floating major version tag workflow#45

Open
dc-larsen wants to merge 1 commit intoSocketDev:mainfrom
dc-larsen:add-floating-major-version-tag
Open

Add floating major version tag workflow#45
dc-larsen wants to merge 1 commit intoSocketDev:mainfrom
dc-larsen:add-floating-major-version-tag

Conversation

@dc-larsen
Copy link
Contributor

Summary

  • Adds a GitHub Actions workflow that runs on each release and updates a floating major version tag (e.g., v1)
  • Lets consumers reference SocketDev/socket-basics@v1 instead of pinning to a specific version like @1.1.3
  • Follows the same pattern used by actions/checkout (@v4), actions/setup-node (@v4), etc.

How it works

When a release is published (e.g., 1.1.4), the workflow:

  1. Extracts the major version (v1)
  2. Deletes the existing v1 tag if present
  3. Re-creates v1 pointing to the release commit

Test plan

  • Publish a release and verify the v1 tag is created/updated
  • Confirm SocketDev/socket-basics@v1 resolves to the latest release

Adds a GitHub Actions workflow that automatically updates a floating
major version tag (e.g., v1) whenever a new release is published.
This lets consumers reference SocketDev/socket-basics@v1 to always
get the latest release without pinning to a specific version.
@dc-larsen dc-larsen requested a review from a team as a code owner March 9, 2026 18:44
@lelia lelia self-assigned this Mar 9, 2026
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