Skip to content

Commit

Permalink
feat: add in release bot (#12)
Browse files Browse the repository at this point in the history
* feat: add in release bot

Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com>

* fix: github action

Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com>

---------

Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com>
  • Loading branch information
iamnewton authored Nov 8, 2024
1 parent bcd6838 commit ed86830
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 19 deletions.
2 changes: 2 additions & 0 deletions .github/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
handleGHRelease: true
manifestConfig: release-please.config.json
23 changes: 4 additions & 19 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,18 @@
name: Publish

on: # yamllint disable-line rule:truthy
push:
branches:
- main
release:
types:
- published

permissions:
contents: write
contents: read
packages: write
pull-requests: write

jobs:
release:
name: Version using Semantic Versioning
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
release-type: node
# The short ref name of the branch or tag that triggered
# the workflow run. For example, `main` or `1.x`
target-branch: ${{ github.ref_name }}

publish-npm:
name: Publish to NPM
runs-on: ubuntu-latest
needs: release
steps:
- uses: actions/checkout@v4
name: Checkout repository
Expand All @@ -49,7 +35,6 @@ jobs:
publish-gh:
name: Publish to GitHub
runs-on: ubuntu-latest
needs: release
steps:
- uses: actions/checkout@v4
name: Checkout repository
Expand Down
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
6 changes: 6 additions & 0 deletions release-please.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"release-type": "node",
"packages": {
".": {}
}
}

0 comments on commit ed86830

Please sign in to comment.