Skip to content

Commit

Permalink
fix: fine tune
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Nov 27, 2024
1 parent e0e1a32 commit 69eb684
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,46 +21,40 @@ jobs:
name: Release
env:
TEMP_BRANCH: temp-${{ github.run_number }}
outputs:
next: ${{ steps.semver.outputs.next }}
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get Next Semver
- name: Get Semver
id: semver
uses: ietf-tools/semver-action@v1
with:
token: ${{ github.token }}

- name: Set up Branch and User
- name: Git Setup
if: ${{ steps.semver.outputs.next }}
env:
TAG: ${{ steps.semver.outputs.next }}
run: |
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config --global user.name "${GITHUB_ACTOR}"
git checkout -b ${{ env.TEMP_BRANCH }}
git push -u origin HEAD:${{ env.TEMP_BRANCH }}
# git push -u origin HEAD:${{ env.TEMP_BRANCH }}
- name: Rebuild and push ./dist
- name: Rebuild ./dist
if: ${{ steps.semver.outputs.next }}
env:
TAG: ${{ steps.semver.outputs.next }}
run: |
set -x
npm run dist
git add ./dist --force
git add .
git commit -m "Rebuild dist/ directory"
git diff ./dist
- name: Tag and Release
if: ${{ steps.semver.outputs.next }}
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ steps.semver.outputs.next }}
run: |
set -x
git tag ${{ env.TAG }}
git push origin tag ${{ env.TAG }}
gh release create ${{ env.TAG }} --title ${{ env.TAG }} --generate-notes
Expand Down

0 comments on commit 69eb684

Please sign in to comment.