Skip to content

Commit

Permalink
fix: testing ci: release
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpmohiburrahman committed Jun 25, 2024
1 parent 9e2275c commit 971901d
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/ci-chrome.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
name: Semantic Release
runs-on: ubuntu-latest
outputs:
release_url: ${{ steps.semantic_release.outputs.release_url }}
version: ${{ steps.get_version.outputs.version }}
notes: ${{ steps.get_notes.outputs.notes }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -47,6 +48,14 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm exec semantic-release

- name: Get release version
id: get_version
run: echo "::set-output name=version::$(jq -r '.nextRelease.version' <<< $(pnpm exec semantic-release --dry-run --debug))"

- name: Get release notes
id: get_notes
run: echo "::set-output name=notes::$(jq -r '.nextRelease.notes' <<< $(pnpm exec semantic-release --dry-run --debug))"

create-github-release:
name: Create GitHub Release
runs-on: ubuntu-latest
Expand All @@ -58,9 +67,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.semantic_release.outputs.nextRelease.version }}
release_name: Release ${{ steps.semantic_release.outputs.nextRelease.version }}
body: ${{ steps.semantic_release.outputs.nextRelease.notes }}
tag_name: ${{ needs.release.outputs.version }}
release_name: Release ${{ needs.release.outputs.version }}
body: ${{ needs.release.outputs.notes }}
draft: false
prerelease: false

Expand Down

0 comments on commit 971901d

Please sign in to comment.