diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index 3c3301a..0000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,61 +0,0 @@ -# Configuration for Release Drafter: https://github.com/toolmantim/release-drafter -name-template: v$NEXT_PATCH_VERSION -tag-template: v$NEXT_PATCH_VERSION - -# Emoji reference: https://gitmoji.carloscuesta.me/ -categories: - - title: 💥 Breaking changes - labels: - - breaking - - title: 🚀 New features and improvements - labels: - - enhancement - - title: 🐛 Bug fixes - labels: - - bug - - title: 📦 Dependency updates - labels: - - dependencies - collapse-after: 15 - - title: 📝 Documentation updates - labels: - - documentation - - title: 🌐 Localization and translation - labels: - - localization - - title: 🌐 Community-related changes - labels: - - community - - title: 👻 Maintenance - labels: - - chore - - maintenance - - ci - - title: 🚦 Tests - labels: - - test - - title: ✍ Other changes -exclude-labels: - - skip-changelog - - invalid -template: | - # What's Changed - $CHANGES - - **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION - - -autolabeler: - - label: 'documentation' - files: - - '*.md' - branch: - - '/docs{0,1}\/.+/' - - label: 'bug' - branch: - - '/fix\/.+/' - title: - - '/fix/i' - - label: 'enhancement' - branch: - - '/feature\/.+/' diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b1330fa..2213626 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,7 +1,7 @@ name: GitHub CI on: push: - branches: [ 'main', 'develop' ] + branches: [ 'main' ] jobs: Release: diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml deleted file mode 100644 index d63239b..0000000 --- a/.github/workflows/release-drafter.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Release Drafter - -on: - push: - branches: [ 'main', 'develop' ] - pull_request: - types: [opened, reopened, synchronize] - -permissions: - contents: read - -jobs: - Update-Release-Drafter: - permissions: - contents: write - pull-requests: write - runs-on: ubuntu-latest - steps: - - uses: release-drafter/release-drafter@v5 - env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} \ No newline at end of file diff --git a/release.config.cjs b/release.config.cjs index 5a7d61b..5b22b9a 100644 --- a/release.config.cjs +++ b/release.config.cjs @@ -1,5 +1,24 @@ module.exports = { - "extends": "@the-rabbit-hole/semantic-release-config", + "verifyConditions": ['@semantic-release/changelog', '@semantic-release/npm', '@semantic-release/git'], + "plugins": [ + '@semantic-release/commit-analyzer', + // '@semantic-release/release-notes-generator', + [ + '@semantic-release/changelog', + { + "changelogFile": "CHANGELOG.md" + } + ], + "@semantic-release/npm", + [ + "@semantic-release/git", + { + "assets": ["package.json", "CHANGELOG.md"], + "message": "chore(release): ${nextRelease.version} [ci skip]\n\n${nextRelease.notes}" + } + ], + // "@semantic-release/github" + ], "branches": [ "main" ] diff --git a/template/__shared__/.github/release-drafter.yml b/template/__shared__/.github/release-drafter.yml deleted file mode 100644 index acd4269..0000000 --- a/template/__shared__/.github/release-drafter.yml +++ /dev/null @@ -1,61 +0,0 @@ -# Configuration for Release Drafter: https://github.com/toolmantim/release-drafter -name-template: v$NEXT_PATCH_VERSION -tag-template: v$NEXT_PATCH_VERSION - -# Emoji reference: https://gitmoji.carloscuesta.me/ -categories: - - title: 💥 Breaking changes - labels: - - breaking - - title: 🚀 New features and improvements - labels: - - enhancement - - title: 🐛 Bug fixes - labels: - - bug - - title: 📦 Dependency updates - labels: - - dependencies - collapse-after: 15 - - title: 📝 Documentation updates - labels: - - documentation - - title: 🌐 Localization and translation - labels: - - localization - - title: 🌐 Community-related changes - labels: - - community - - title: 👻 Maintenance - labels: - - chore - - maintenance - - ci - - title: 🚦 Tests - labels: - - test - - title: ✍ Other changes -exclude-labels: - - skip-changelog - - invalid -template: | - # What's Changed - $CHANGES - - **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION - - -autolabeler: - - label: 'documentation' - files: - - '*.md' - branch: - - '/docs{0,1}\/.+/' - - label: 'bug' - branch: - - '/fix\/.+/' - title: - - '/fix/i' - - label: 'enhancement' - branch: - - '/feature\/.+/' \ No newline at end of file diff --git a/template/__shared__/.github/workflows/release-drafter.yml b/template/__shared__/.github/workflows/release-drafter.yml deleted file mode 100644 index d63239b..0000000 --- a/template/__shared__/.github/workflows/release-drafter.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Release Drafter - -on: - push: - branches: [ 'main', 'develop' ] - pull_request: - types: [opened, reopened, synchronize] - -permissions: - contents: read - -jobs: - Update-Release-Drafter: - permissions: - contents: write - pull-requests: write - runs-on: ubuntu-latest - steps: - - uses: release-drafter/release-drafter@v5 - env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} \ No newline at end of file