From b2ffeee04591414b42a951b423097b1742339031 Mon Sep 17 00:00:00 2001 From: Tim Stone Date: Mon, 16 Oct 2023 08:04:05 +1000 Subject: [PATCH] =?UTF-8?q?build(semver):=20=F0=9F=94=A7=20Switch=20standa?= =?UTF-8?q?rd-version=20to=20release-please=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove depricated standard-version & config - Add github workflow for release-please Github action for semver - Tweak Changelog header/title content - Remove script from package.json for standard-version --- .github/dependabot.yml | 22 ++++++++++++++++ .github/workflows/release-please.yaml | 36 +++++++++++++++++++++++++++ .versionrc.json | 25 ------------------- 3 files changed, 58 insertions(+), 25 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/release-please.yaml delete mode 100644 .versionrc.json diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..d4ea8608 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,22 @@ +version: 2 +updates: + + # Maintain dependencies for pnpm + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "weekly" + assignees: + - "tsdevau" + reviewers: + - "tsdevau" + + # Maintain dependencies for GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + assignees: + - "tsdevau" + reviewers: + - "tsdevau" diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml new file mode 100644 index 00000000..57e3db9d --- /dev/null +++ b/.github/workflows/release-please.yaml @@ -0,0 +1,36 @@ +on: + push: + branches: + - main + +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 + with: + release-type: node + package-name: the-carpet-surgeon + pull-request-title-pattern: "chore${scope}: 🔖 `@tsdevau/codewars-kata-solutions` -> v${version}" + pull-request-header: ":robot: PR by release-please bot" + changelog-types: '[ + { "type": "feat", "section": "Features & Additions" }, + { "type": "perf", "section": "Performance Improvements" }, + { "type": "style", "section": "Style & UX Improvements" }, + { "type": "fix", "section": "Bug Fixes" }, + { "type": "revert", "section": "Work in Progress" }, + { "type": "wip", "section": "Work In Progress" }, + { "type": "init", "section": "Work in Progress" }, + { "type": "docs", "section": "Documentation" }, + { "type": "refactor", "section": "Code & DX Improvements" }, + { "type": "chore", "section": "General Config Updates" }, + { "type": "build", "section": "General Config Updates" }, + { "type": "test", "section": "Test Config Updates" }, + { "type": "ci", "hidden": true } + ]' diff --git a/.versionrc.json b/.versionrc.json deleted file mode 100644 index acec2bec..00000000 --- a/.versionrc.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "types": [ - { "type": "kata", "section": "Added & Updated Katas" }, - { "type": "feat", "section": "Features" }, - { "type": "fix", "section": "Bug Fixes" }, - { "type": "chore", "section": "Build Related" }, - { "type": "build", "section": "Build Related" }, - { "type": "refactor", "section": "Other Changes" }, - { "type": "style", "section": "Other Changes" }, - { "type": "perf", "section": "Features" }, - { "type": "test", "section": "Build Related" }, - { "type": "docs", "section": "Documentation" }, - { "type": "revert", "section": "Other Changes" }, - { "type": "wip", "section": "Work In Progress" }, - { "type": "init", "section": "Work in Progress" }, - { "type": "ci", "hidden": true } - ], - "bumpFiles": [ - { - "filename": "package.json", - "type": "json" - } - ], - "releaseCommitMessageFormat": "chore(bump): 🏷️ `@tsdevau/codewars-kata-solutions` -> v{{currentTag}}" -}