From b2510a7b18a8e51b6a89a8c6238f187f7d5db176 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Mon, 14 Oct 2024 19:54:19 +0100 Subject: [PATCH] ci(cd): migrate to manifest config --- .github/dependabot.yml | 4 ---- .github/release-please/config.json | 18 ++++++++++++++++++ .github/release-please/manifest.json | 1 + .github/workflows/cd.yml | 19 +++---------------- .prettierignore | 1 + 5 files changed, 23 insertions(+), 20 deletions(-) create mode 100644 .github/release-please/config.json create mode 100644 .github/release-please/manifest.json diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 40025c3a2..d1a08848d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,10 +5,6 @@ updates: include: scope prefix: ci directory: / - ignore: - # Staying on v3 due to incomplete migration guide for v4 - - dependency-name: google-github-actions/release-please-action - update-types: ["version-update:semver-major"] open-pull-requests-limit: 20 schedule: interval: monthly diff --git a/.github/release-please/config.json b/.github/release-please/config.json new file mode 100644 index 000000000..5af9de65b --- /dev/null +++ b/.github/release-please/config.json @@ -0,0 +1,18 @@ +{ + "release-type": "node", + "prerelease": false, + "include-component-in-tag": false, + "changelog-sections": [ + { "section": "Bug fixes", "type": "fix", "hidden": false }, + { "section": "Continuous integration", "type": "ci", "hidden": false }, + { "section": "Dependencies", "type": "build", "hidden": false }, + { "section": "Documentation", "type": "docs", "hidden": false }, + { "section": "Features", "type": "feat", "hidden": false }, + { "section": "Improvements", "type": "perf", "hidden": false }, + { "section": "Improvements", "type": "refactor", "hidden": false }, + { "section": "Miscellaneous", "type": "chore", "hidden": false }, + { "section": "Miscellaneous", "type": "style", "hidden": false }, + { "section": "Tests", "type": "test", "hidden": false } + ], + "packages": { ".": {} } +} diff --git a/.github/release-please/manifest.json b/.github/release-please/manifest.json new file mode 100644 index 000000000..9a03436a2 --- /dev/null +++ b/.github/release-please/manifest.json @@ -0,0 +1 @@ +{".":"11.2.6"} \ No newline at end of file diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 21f314a0b..7d156a0d2 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -25,23 +25,10 @@ jobs: steps: - name: Release Please id: release - # Staying on v3 due to incomplete migration guide for v4 - uses: google-github-actions/release-please-action@v3 + uses: googleapis/release-please-action@v4 with: - changelog-types: > - [ - { "section": "Bug fixes", "type": "fix", "hidden": false }, - { "section": "Continuous integration", "type": "ci", "hidden": false }, - { "section": "Dependencies", "type": "build", "hidden": false }, - { "section": "Documentation", "type": "docs", "hidden": false }, - { "section": "Features", "type": "feat", "hidden": false }, - { "section": "Improvements", "type": "perf", "hidden": false }, - { "section": "Improvements", "type": "refactor", "hidden": false }, - { "section": "Miscellaneous", "type": "chore", "hidden": false }, - { "section": "Miscellaneous", "type": "style", "hidden": false }, - { "section": "Tests", "type": "test", "hidden": false } - ] - release-type: node + config-file: .github/release-please/config.json + manifest-file: .github/release-please/manifest.json assets: name: Create and Upload Release Asset diff --git a/.prettierignore b/.prettierignore index d83b69645..5c29f9b08 100644 --- a/.prettierignore +++ b/.prettierignore @@ -138,6 +138,7 @@ dist # Auto generated files package.json CHANGELOG.md +.github/release-please/manifest.json # lock files bun.lockb