CENG-581: Allow pointing to Major version to pull latest#17
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR modernizes the release workflow to support floating major version tags (e.g., v1 always points to the latest v1.x.x) and updates documentation to follow best practices by referencing stable major versions instead of @master.
Key Changes:
- Implemented a release workflow that automatically maintains floating major version tags, enabling users to reference
@v1for the latest stable v1.x release - Updated all README examples from
@masterto@v1for better version stability - Added OIDC token as an action output for programmatic access
Reviewed Changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.github/workflows/release.yml |
Complete workflow overhaul with tag validation, automated GitHub releases, and floating major tag management |
README.md |
Updated all usage examples to reference @v1 instead of @master |
src/oidc-auth.js |
Added oidc-token output for programmatic token access |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
ca02069 to
05137f3
Compare
5e68e4e to
0e4540e
Compare
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…eate-a-tag-with-just-major-version' into ceng-581-request-create-a-tag-with-just-major-version
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 6 out of 7 changed files in this pull request and generated no new comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This pull request updates the release workflow and improves documentation and output handling for authentication.
Release Workflow Improvements
.github/workflows/release.ymlworkflow was refactored to validate tag formats, use a more precise tag pattern, create releases with improved release notes, and force-update the floating major tag for better version management.Documentation Updates
README.mdwere updated to reference the stablecloudsmith-io/cloudsmith-cli-action@v1instead of@master, ensuring best practices and reliability for users. (Addressing Request: Create a tag with just major version #5)Authentication Output Enhancement
src/oidc-auth.jsscript now sets the OIDC token as an output variable (oidc-token). (Addressing Output oidc-token is not set #6)Developer experience enhancements:
package.jsonand configured apreparescript to install it automatically. [1] [2]pre-commithook (.husky/pre-commit) that auto-installs dependencies if missing, builds the action, and stagesdist/index.jsonly if changed, aborting the commit if the build fails. This keeps the bundled output reliably in sync with source changes.