Skip to content

Commit

Permalink
Handle GitHub releases using gh CLI (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkudrna committed Aug 9, 2024
1 parent a8f4312 commit 2f0d1f8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ name: Release Management

on:
push:
branches: [ master ]
# branches: [ master ]
branches: [ release/* ]

jobs:
test_and_build:
name: Test and build
runs-on: ubuntu-20.04
outputs:
tag: ${{ steps.check_package_version.outputs.version }}
version_changed: ${{ steps.check_package_version.outputs.changed }}
steps:
- name: Clone repository
Expand Down Expand Up @@ -71,11 +73,10 @@ jobs:
# `test_and_build` job first so this job is skipped rather than exited with an error.
- name: Publish matching GitHub release draft
id: github_release
uses: JamesMGreene/node-draft-releaser@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
allow_release_name_update: 'false'
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: gh release edit "${{ needs.test_and_build.outputs.tag }}" --draft=false

- name: Write out the release URL
run: echo "Released at $RELEASE_URL"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@react-ui-org/react-ui",
"description": "React UI is a themeable UI library for React apps.",
"version": "0.55.1",
"version": "0.56.0",
"keywords": [
"react",
"ui",
Expand Down

0 comments on commit 2f0d1f8

Please sign in to comment.