From b8010abf169eb8d31635f633dc289099538f2353 Mon Sep 17 00:00:00 2001 From: shewood Date: Fri, 14 Jun 2024 13:33:43 -0400 Subject: [PATCH 1/3] added release drafter and changelog --- .github/release-drafter.yml | 44 ++++++++++++++++++++++++++++ .github/workflows/changelog.yml | 24 +++++++++++++++ .github/workflows/release-please.yml | 12 ++++++-- CHANGELOG.md | 10 +++++++ 4 files changed, 87 insertions(+), 3 deletions(-) create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/changelog.yml create mode 100644 CHANGELOG.md diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 000000000..3d31add1d --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,44 @@ +# 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: + - fix + - bug + - title: 📝 Documentation updates + labels: + - documentation + - title: 🌐 Localization and translation + labels: + - localization + - title: 👻 Maintenance + labels: + - chore + - maintenance + - title: 🚦 Tests + labels: + - test + - title: ✍ Other changes + # Default label used by Dependabot + - title: 📦 Dependency updates + labels: + - dependencies + collapse-after: 15 +exclude-labels: + - skip-changelog + - invalid + +template: | + + $CHANGES + + diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 000000000..b5074fd8b --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,24 @@ +name: Release Drafter + +on: + pull_request: + branches: + - dev + workflow_dispatch: + +jobs: + update_release_draft: + runs-on: ubuntu-latest + permissions: + # Write permission is required to create a github release + contents: write + # Write permission is required for autolabeler + pull-requests: write + steps: + - uses: release-drafter/release-drafter@v6 + with: + name: next + tag: next + version: next + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 0edd809e5..a10d61cf0 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -1,13 +1,19 @@ on: push: branches: - - main + - dev + + +permissions: + contents: write + pull-requests: write + name: release-please jobs: release-please: runs-on: ubuntu-latest steps: - - uses: google-github-actions/release-please-action@v3.1.2 + - uses: googleapis/release-please-action@v4 with: release-type: node - package-name: release-please-action \ No newline at end of file + package-name: release-please-action diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 000000000..4cc7c8def --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,10 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +### Added From 871c7135b628138edc08fda2f195cdabc197b73b Mon Sep 17 00:00:00 2001 From: shewood Date: Fri, 14 Jun 2024 13:52:36 -0400 Subject: [PATCH 2/3] update workflow --- .github/workflows/changelog.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index b5074fd8b..ac2d3ec3c 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -1,7 +1,7 @@ name: Release Drafter on: - pull_request: + push: branches: - dev workflow_dispatch: From c3d1ddb6f2f7fae64c1266748a1154ffa3eaac14 Mon Sep 17 00:00:00 2001 From: shewood Date: Fri, 14 Jun 2024 14:12:55 -0400 Subject: [PATCH 3/3] basic file --- .github/release-drafter.yml | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 3d31add1d..02f513177 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,41 +1,4 @@ -# 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: - - fix - - bug - - title: 📝 Documentation updates - labels: - - documentation - - title: 🌐 Localization and translation - labels: - - localization - - title: 👻 Maintenance - labels: - - chore - - maintenance - - title: 🚦 Tests - labels: - - test - - title: ✍ Other changes - # Default label used by Dependabot - - title: 📦 Dependency updates - labels: - - dependencies - collapse-after: 15 -exclude-labels: - - skip-changelog - - invalid template: |