Skip to content

Commit

Permalink
chore: fix github release
Browse files Browse the repository at this point in the history
  • Loading branch information
ImLunaHey committed Sep 21, 2023
1 parent 6c3ab46 commit 83fb8bc
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,7 @@ jobs:
- name: Get previous tag
id: previous_tag
run: |
echo "previous_tag=$(git --no-pager tag --sort=creatordate --merged ${{ github.ref_name }} | tail -2 | head -1)" >> $GITHUB_OUTPUT
- name: Generate CHANGELOG for Github release
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ github.token }}
fromTag: ${{ steps.previous_tag.outputs.previous_tag }}
toTag: ${{ github.ref_name }}
writeToFile: false
echo "previous_tag=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
- name: Bump package version
run: npx standard-version
Expand All @@ -83,6 +74,15 @@ jobs:
- name: Push changes
run: git push --follow-tags origin main

- name: Generate CHANGELOG for Github release
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ github.token }}
fromTag: ${{ steps.previous_tag.outputs.previous_tag }}
toTag: ${{ steps.current_tag.outputs.current_tag }}
writeToFile: false

- name: Create package for Github release
run: npm pack

Expand Down

0 comments on commit 83fb8bc

Please sign in to comment.