Skip to content

IS-11036 added workflow to create a release when the repo is tagged#68

Open
anestos wants to merge 4 commits intodevfrom
feat/dev/IS-11036
Open

IS-11036 added workflow to create a release when the repo is tagged#68
anestos wants to merge 4 commits intodevfrom
feat/dev/IS-11036

Conversation

@anestos
Copy link
Copy Markdown

@anestos anestos commented Feb 20, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 20, 2026 09:40
Copy link
Copy Markdown

Copilot AI left a comment

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 adds a new GitHub Actions workflow that automatically creates a GitHub release whenever a tag matching the pattern ui-kit-* is pushed to the repository. This automation is designed to streamline the release process for the Curity UI Kit monorepo by eliminating manual release creation steps.

Changes:

  • Added a new workflow file .github/workflows/release.yml that triggers on tags with the ui-kit-* pattern
  • The workflow extracts the version from the tag name and creates a GitHub release with that version
  • Configured permissions to allow writing releases to the repository

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI left a comment

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 1 out of 1 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +61 to +66
- name: Create GitHub Release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref_name }}
release_name: ${{ steps.extract_version.outputs.version }}
body: ${{ steps.changelog.outputs.changelog }}
Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

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

actions/create-release@v1 requires authentication, but this step doesn't pass a token (e.g., env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}). Without it, the release creation will fail with an auth error. Add the required token environment variable (or switch to an action that accepts an explicit token: input).

Copilot uses AI. Check for mistakes.
- name: Generate changelog from merged PRs
id: changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

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

This workflow sets GITHUB_TOKEN for the gh CLI, but elsewhere in this repo gh is authenticated via GH_TOKEN. To match the existing pattern (and avoid any CLI auth edge cases), set GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} for the changelog step.

Suggested change
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@anestos is this correct?

anestos and others added 2 commits February 20, 2026 10:51
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- name: Generate changelog from merged PRs
id: changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@anestos is this correct?

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.

3 participants