Skip to content

Commit

Permalink
fix: rewrite release
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebonsignori committed Aug 1, 2022
1 parent 00b01c2 commit fd0b570
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,15 @@ jobs:
- run: |
git config user.name github-actions
git config user.email github-actions@github.com
LAST_MESSAGE=$(git log -1 HEAD --pretty=format:%s)
git reset --soft HEAD~1
npm run build
npm run package
LAST_MESSAGE=$(git log -1 HEAD --pretty=format:%s)
git add --all
git diff --quiet && git diff --staged --quiet || git reset --soft HEAD~1 && git add --all && git commit -a -m "$LAST_MESSAGE" && git push --force
git diff --quiet && git diff --staged --quiet || git commit -a -m "$LAST_MESSAGE" && git push --force
# do the release
- run: npx semantic-release --debug
env:
Expand Down

0 comments on commit fd0b570

Please sign in to comment.