Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cociweb authored May 28, 2024
1 parent 465fd37 commit 1a6120e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ jobs:
- name: Run build and get version
id: build
run: |
OUTPUT=$(npm run build)
VERSION=$(echo $OUTPUT | grep -oP 'lawn-mower-card@\K[^ ]+')
echo "PACKAGE_VERSION=$VERSION" >> $GITHUB_ENV
OUTPUT=$(npm run build) \
VERSION=$(echo $OUTPUT | grep -oP 'lawn-mower-card@\K[^ ]+') \
echo "PACKAGE_VERSION=$VERSION" >> $GITHUB_ENV \
echo "$VERSION"
- name: Create Release
run: |
Expand All @@ -56,6 +57,8 @@ jobs:
--title="${{ env.PACKAGE_VERSION }}" \
--notes="Release notes for v${{ env.PACKAGE_VERSION }}" \
--draft
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

- name: Upload Release Asset
run: |
Expand Down

0 comments on commit 1a6120e

Please sign in to comment.