Skip to content

Commit

Permalink
fix: simplify release-please config and remove pat (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoopDog committed Nov 13, 2024
1 parent 7a245ca commit 2b448f7
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ on:
push:
branches:
- main
workflow_dispatch: # Enable manual triggering

permissions:
contents: write
Expand All @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "14.0.0"
}
23 changes: 23 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -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" }
]
}

0 comments on commit 2b448f7

Please sign in to comment.