From 2b448f7ce1b10323e9ffbed15bf5f568473ecc87 Mon Sep 17 00:00:00 2001 From: Dave Rogers Date: Wed, 13 Nov 2024 15:35:02 -0800 Subject: [PATCH] fix: simplify release-please config and remove pat (#267) --- .github/workflows/release-please.yml | 9 +++------ .release-please-manifest.json | 3 +++ release-please-config.json | 23 +++++++++++++++++++++++ 3 files changed, 29 insertions(+), 6 deletions(-) create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index a752880a..7edc6126 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -2,6 +2,7 @@ on: push: branches: - main + workflow_dispatch: # Enable manual triggering permissions: contents: write @@ -16,12 +17,8 @@ jobs: - uses: googleapis/release-please-action@v4 id: release with: - # this assumes that you have created a personal access token - # (PAT) and configured it as a GitHub action secret named - # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important). - token: ${{ secrets.RELEASE_PLEASE_TOKEN }} - # This is a built-in strategy in release-please, see "Action Inputs" for more options - release-type: node + config-file: release-please-config.json + token: ${{ secrets.GITHUB_TOKEN }} # The logic below handles the npm publication: - uses: actions/checkout@v4 diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 00000000..c5f7d75e --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "14.0.0" +} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 00000000..bee0745c --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,23 @@ +{ + "monorepo-tags": false, + "packages": { + ".": { + "release-type": "node", + "component": "", + "include-component-in-tag": false + } + }, + "changelog-sections": [ + { "type": "feat", "section": "Features" }, + { "type": "fix", "section": "Bug Fixes" }, + { "type": "chore", "section": "Chores" }, + { "type": "content", "section": "Content" }, + { "type": "docs", "section": "Documentation" }, + { "type": "style", "section": "Styles" }, + { "type": "refactor", "section": "Code Refactoring" }, + { "type": "perf", "section": "Performance Improvements" }, + { "type": "test", "section": "Tests" }, + { "type": "build", "section": "Build System" }, + { "type": "ci", "section": "Continuous Integration" } + ] +}