From 428a865d7831c3d4a02d0749e7f4fb0e2a06fd27 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Mon, 14 Oct 2024 18:24:58 +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 | 20 +++----------------- .prettierignore | 1 + 5 files changed, 23 insertions(+), 21 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 6e46b970..3d0c7eec 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 00000000..5af9de65 --- /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 00000000..e572fc17 --- /dev/null +++ b/.github/release-please/manifest.json @@ -0,0 +1 @@ +{".":"7.2.2"} \ No newline at end of file diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 47b771d8..a2fabd7c 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -22,24 +22,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 - package-name: node-poppler + config-file: .github/release-please/config.json + manifest-file: .github/release-please/manifest.json publish-npm: name: Publish to NPM diff --git a/.prettierignore b/.prettierignore index 1bd4befe..80fd806c 100644 --- a/.prettierignore +++ b/.prettierignore @@ -139,6 +139,7 @@ dist package.json CHANGELOG.md types/ +.github/release-please/manifest.json # lock files bun.lockb