Skip to content

Commit

Permalink
Refactor release.yml to extract package version and update create_rel…
Browse files Browse the repository at this point in the history
…ease job ID
  • Loading branch information
a-ng-d committed Sep 22, 2024
1 parent f4dc687 commit bdb4fb3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ jobs:
with:
fetch-depth: 0

- name: Extract local tag
id: extract_tag
- name: Extract package version
id: extract_version
run: |
local_tag=$(git tag --points-at HEAD | head -n 1)
echo "::set-output name=local_tag::$local_tag"
package_version=$(jq -r '.version' package.json)
echo "::set-output name=package_version::$package_version"
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.extract_tag.outputs.local_tag }}
release_name: Release ${{ steps.extract_tag.outputs.local_tag }}
tag_name: v${{ steps.extract_version.outputs.package_version }}
release_name: Release ${{ steps.extract_version.outputs.package_version }}
body: |
## What's Changed
[Friendly release note](https://ui-color-palette.canny.io/changelog/${{ github.ref_name }})・[Full Changelog](https://github.com/inVoltag/figma-ui-color-palette/commits/${{ github.ref_name }})

0 comments on commit bdb4fb3

Please sign in to comment.