Skip to content

CENG-581: Allow pointing to Major version to pull latest#17

Merged
BartoszBlizniak merged 6 commits into
masterfrom
ceng-581-request-create-a-tag-with-just-major-version
Oct 22, 2025
Merged

CENG-581: Allow pointing to Major version to pull latest#17
BartoszBlizniak merged 6 commits into
masterfrom
ceng-581-request-create-a-tag-with-just-major-version

Conversation

@BartoszBlizniak

@BartoszBlizniak BartoszBlizniak commented Oct 21, 2025

Copy link
Copy Markdown
Member

This pull request updates the release workflow and improves documentation and output handling for authentication.

Release Workflow Improvements

  • The .github/workflows/release.yml workflow 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

  • All usage examples in the README.md were updated to reference the stable cloudsmith-io/cloudsmith-cli-action@v1 instead of @master, ensuring best practices and reliability for users. (Addressing Request: Create a tag with just major version #5)

Authentication Output Enhancement

Developer experience enhancements:

  • Added Husky as a development dependency in package.json and configured a prepare script to install it automatically. [1] [2]
  • Introduced a Husky pre-commit hook (.husky/pre-commit) that auto-installs dependencies if missing, builds the action, and stages dist/index.js only if changed, aborting the commit if the build fails. This keeps the bundled output reliably in sync with source changes.

Copilot AI review requested due to automatic review settings October 21, 2025 13:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 @v1 for the latest stable v1.x release
  • Updated all README examples from @master to @v1 for 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.

Comment thread .github/workflows/release.yml Outdated
Comment thread src/oidc-auth.js
Comment thread .github/workflows/release.yml Fixed
@BartoszBlizniak BartoszBlizniak force-pushed the ceng-581-request-create-a-tag-with-just-major-version branch from ca02069 to 05137f3 Compare October 21, 2025 13:15
@BartoszBlizniak BartoszBlizniak force-pushed the ceng-581-request-create-a-tag-with-just-major-version branch from 5e68e4e to 0e4540e Compare October 21, 2025 13:17
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@BartoszBlizniak BartoszBlizniak requested a review from a team October 21, 2025 13:18
…eate-a-tag-with-just-major-version' into ceng-581-request-create-a-tag-with-just-major-version

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .github/workflows/release.yml
Comment thread .github/workflows/release.yml
Comment thread .github/workflows/release.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Comment thread README.md

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@BartoszBlizniak BartoszBlizniak merged commit 9c31529 into master Oct 22, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants