diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index 722ffc5..0000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,41 +0,0 @@ -name-template: 'v$RESOLVED_VERSION' -tag-template: 'v$RESOLVED_VERSION' -categories: - - title: '🚀 Features' - labels: - - 'feature' - - 'enhancement' - - title: '🐛 Bug Fixes' - labels: - - 'fix' - - 'bugfix' - - 'bug' - - title: '🧰 Maintenance' - label: 'chore' -change-template: '- $TITLE @$AUTHOR (#$NUMBER)' -change-title-escapes: '\<*_&' -version-resolver: - major: - labels: - - 'major' - minor: - labels: - - 'minor' - patch: - labels: - - 'patch' - default: patch -template: | - ## Changes - - $CHANGES -autolabeler: - - label: 'chore' - title: - - '/chore\:/i' - - label: 'bug' - title: - - '/fix\:/i' - - label: 'enhancement' - title: - - '/feature/i' diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 059eaca..e54ede3 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -4,26 +4,29 @@ on: push: branches: - main + workflow_dispatch: + inputs: + dry-run: + description: Compute the next version without creating or publishing a release + type: boolean + default: false concurrency: group: release-drafter cancel-in-progress: false -permissions: - contents: read - jobs: - update_release_draft: + draft_release: + name: Create Release permissions: contents: write - pull-requests: read + pull-requests: write runs-on: ubuntu-latest steps: - # Drafts the next Release notes as Pull Requests are merged into "main" - # Pinned to v6.0.0 to avoid v6.1.0 bug: https://github.com/release-drafter/release-drafter/issues/1425 - - uses: release-drafter/release-drafter@v6.0.0 + - name: Create or publish release + uses: aaronsteers/semantic-pr-release-drafter@v2.4.4 with: - config-name: release-drafter.yml - disable-autolabeler: true + publish: true + dry-run: ${{ inputs.dry-run || false }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/update-major-tags.yml b/.github/workflows/update-major-tags.yml deleted file mode 100644 index cfc902f..0000000 --- a/.github/workflows/update-major-tags.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Update Major Version Tags - -on: - push: - tags: - - 'v[0-9]+.[0-9]+.[0-9]+' - -permissions: - contents: write - -jobs: - update-major-tags: - name: Update Major Tags - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Update major tag - uses: nowactions/update-majorver@v1