Skip to content

Conversation

@gmegidish
Copy link
Member

@gmegidish gmegidish commented Dec 8, 2025

Summary by CodeRabbit

  • Chores
    • Automated GitHub release creation when version tags are pushed, streamlining the release process.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Dec 8, 2025

Walkthrough

A new GitHub Actions step named "Create GitHub Release" was added to the publish workflow. This step automatically creates GitHub releases when tags are pushed, using the create-release action with GITHUB_TOKEN authentication and configuration from the tag reference.

Changes

Cohort / File(s) Summary
GitHub Actions workflow update
.github/workflows/build.yml
Added "Create GitHub Release" step to the Publish on github mcp registry job. Configured to trigger on tag pushes using actions/create-release@v1, with GITHUB_TOKEN authentication and tag/release names sourced from github.ref_name. Positioned after the mcp-publisher logout step.

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding GitHub release creation when tags are published, which matches the workflow modification in the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat-create-github-release-on-publish

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d9c0cb0 and 7375c13.

📒 Files selected for processing (1)
  • .github/workflows/build.yml (1 hunks)

Comment on lines +74 to +81
- name: Create GitHub Release
if: github.ref_type == 'tag'
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🌐 Web query:

GitHub release creation best practices 2025 actions/create-release deprecation

💡 Result:

Short answer

  • actions/create-release is effectively archived/soft-deprecated; migrate off it. [1][2]
  • Best replacements: use gh CLI (gh release create), Octokit/REST API, or maintained actions (release-drafter, release-please) depending on needs. [2][3][5]

Key best practices (2025)

  1. Prefer gh CLI or the REST API (Octokit) for robustness and long‑term support — e.g., run gh release create in a workflow step to create releases and upload assets. [2][3]
  2. Avoid unmaintained/archived Actions; pick actively maintained actions if you need higher‑level behavior (changelog generation, automated tagging). Examples: release-please, release-drafter. [5][2]
  3. Use a token with the right scope:
    • GITHUB_TOKEN is fine for most tasks, but note actions triggered by GITHUB_TOKEN do NOT create new workflow runs. If you need events to trigger downstream workflows, use a PAT with appropriate scopes. [4][5]
  4. Pin versions and migrate off deprecated major versions (watch GitHub deprecation notices and changelog dates). Monitor repo/changelog annotations in your workflows well before deprecation brownouts. [3]
  5. Attach assets with gh or the official upload-release-asset endpoints (or maintained upload actions); test upload behavior and content‑type handling. [2][3]
  6. Implement idempotency and error handling: check for existing tags/releases, support allowUpdates or conditional create/update logic, and surface failures clearly in CI logs. [1][9]

Where I pulled these from

  • actions/create-release repository archived notice. [1]
  • Marketplace / action docs recommending gh CLI and examples. [2][3]
  • GitHub changelog and deprecation/breaking‑changes notices (watch dates like 2025 deprecation announcements). [3]
  • Docs about GITHUB_TOKEN behavior and release automation tooling (release-please). [4][5]

If you want, I can:

  • produce a ready-to-drop workflow that uses gh release create (including PAT vs GITHUB_TOKEN logic), or
  • scan your repo/workflows for uses of actions/create-release and produce a migration plan.

🌐 Web query:

github actions create-release@v1 maintenance status alternative

💡 Result:

Short answer: actions/create-release@v1 is archived and unmaintained (read‑only; archived Mar 4, 2021). Migrate to an actively maintained alternative such as softprops/action-gh-release, ncipollo/release-action, or other community forks. [1][2][3][4]

Suggested alternatives

  • softprops/action-gh-release — actively maintained, supports assets and GHES use cases. [3]
  • ncipollo/release-action — popular, supports uploading assets and body files. [4]
  • kuloud/Github-Release-Action (elgohr-style) — simple release-only action. [5]
  • comnoco/create-release — a maintained fork that updates APIs (drop‑in replacement for many uses). [4]

References

  1. actions/create-release repository (archived). [1]
  2. actions/create-release releases / archive notice. [2]
  3. softprops / action-gh-release (Marketplace / repo). [3]
  4. comnoco/create-release (maintained fork) and ncipollo/release-action (Marketplace). [4]
  5. kuloud/Github-Release-Action docs. [6]

Replace the archived actions/create-release@v1 action with an actively maintained alternative or the GitHub CLI.

The actions/create-release@v1 action has been archived since March 2021 and is no longer maintained. Use either the GitHub CLI (gh release create) or an actively maintained community action such as softprops/action-gh-release or ncipollo/release-action.

Example using gh release create:

    - name: Create GitHub Release
      if: github.ref_type == 'tag'
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      run: |
        gh release create "${{ github.ref_name }}" \
          --title "Release ${{ github.ref_name }}" \
          --generate-notes

Alternatively, consider softprops/action-gh-release if you prefer a maintained action approach.

🤖 Prompt for AI Agents
In .github/workflows/build.yml around lines 74-81, the step using the archived
actions/create-release@v1 must be replaced with a maintained alternative; update
the step to either run the GitHub CLI or use a maintained action (e.g.,
softprops/action-gh-release or ncipollo/release-action). If using gh, replace
the uses: step with a run: step that invokes gh release create "${{
github.ref_name }}" --title "Release ${{ github.ref_name }}" (ensure
GITHUB_TOKEN is available and gh is installed or setup via actions/setup-node +
core/command if needed, and repository permissions allow write); if using
softprops/action-gh-release, replace uses: with the softprops action and pass
tag_name: ${{ github.ref_name }} and name: Release ${{ github.ref_name }} and
ensure GITHUB_TOKEN in env. Ensure the new step keeps the same if:
github.ref_type == 'tag' condition and necessary permissions/secrets are
configured.

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