Merge #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Merge | |
on: | |
push: | |
branches: [main] | |
paths: | |
- 'src/**' | |
- 'package-lock.json' | |
- 'package.json' | |
- 'tsconfig.json' | |
- 'action.yml' | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
semantic-release: | |
runs-on: ubuntu-22.04 | |
outputs: | |
tag: ${{ steps.changelog.outputs.tag }} | |
version: ${{ steps.changelog.outputs.version }} | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Conventional Changelog Update | |
uses: TriPSs/conventional-changelog-action@v5 | |
id: changelog | |
continue-on-error: true | |
with: | |
github-token: ${{ github.token }} | |
output-file: 'CHANGELOG.md' | |
skip-version-file: 'true' | |
skip-commit: 'true' | |
skip-on-empty: 'false' | |
git-push: 'true' | |
# Commit any changes to dist/ and lib/ | |
- uses: EndBug/add-and-commit@v9 | |
with: | |
add: 'dist/ lib/ --force' | |
message: "Rebuild dist/ directory" | |
push: false | |
- name: Create Release | |
uses: softprops/action-gh-release@v2 | |
if: ${{ steps.changelog.outputs.version != '' }} | |
continue-on-error: true | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
token: ${{ github.token }} | |
tag_name: ${{ steps.changelog.outputs.tag }} | |
name: ${{ steps.changelog.outputs.tag }} | |
body: ${{ steps.changelog.outputs.clean_changelog }} |