Skip to content

Commit

Permalink
Cleanup release
Browse files Browse the repository at this point in the history
  • Loading branch information
Haaxor1689 committed Jul 28, 2023
1 parent b9de142 commit 2a80750
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 35 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,37 +48,3 @@ jobs:
run: |
echo "Version in package.json has not changed. Skipping."
exit 0
- name: Configure changelog
if: steps.publish.outputs.type != 'none'
run: |
echo '{"categories": [], "template": "## Commits:\n\n${{ '${{UNCATEGORIZED}}' }}", "pr_template": ${{ '"- ${{MERGE_SHA}} ${{TITLE}}"' }} }' > changelog_config.json
cat changelog_config.json
echo "last_tag=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
echo "curr_commit=$(git rev-parse HEAD)" >> $GITHUB_ENV
- name: Generate changelog
if: steps.publish.outputs.type != 'none'
id: github_release
uses: mikepenz/release-changelog-builder-action@v2.9.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
fromTag: '${{ env.last_tag }}'
toTag: ${{ github.ref }}
commitMode: true
configuration: changelog_config.json

- name: Create release
if: steps.publish.outputs.type != 'none'
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.publish.outputs.version }}
release_name: v${{ steps.publish.outputs.version }}
commitish: ${{ github.ref }}
body: ${{steps.github_release.outputs.changelog}}
draft: false
prerelease: false
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,8 @@
]
}
},
"prettier": "@haaxor1689/prettier-config"
"prettier": "@haaxor1689/prettier-config",
"publishConfig": {
"access": "public"
}
}

0 comments on commit 2a80750

Please sign in to comment.