Skip to content

Commit

Permalink
update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
iossocket committed Dec 16, 2024
1 parent ac9b118 commit 2e30361
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,19 @@ jobs:
run: |
PREVIOUS_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "")
if [ -z "$PREVIOUS_TAG" ]; then
echo "CHANGELOG<<EOF" >> $GITHUB_ENV
git log --pretty=format:"* %s" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
{
echo 'CHANGELOG<<ENDOFCHANGELOG'
git log --pretty=format:"* %s"
echo
echo 'ENDOFCHANGELOG'
} >> $GITHUB_ENV
else
echo "CHANGELOG<<EOF" >> $GITHUB_ENV
git log --pretty=format:"* %s" $PREVIOUS_TAG..HEAD >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
{
echo 'CHANGELOG<<ENDOFCHANGELOG'
git log --pretty=format:"* %s" $PREVIOUS_TAG..HEAD
echo
echo 'ENDOFCHANGELOG'
} >> $GITHUB_ENV
fi
- run: npm ci
Expand Down

0 comments on commit 2e30361

Please sign in to comment.