Skip to content

Commit

Permalink
feat: add in release bot
Browse files Browse the repository at this point in the history
Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com>
  • Loading branch information
iamnewton committed Nov 8, 2024
1 parent bcd6838 commit bba6710
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 17 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
21 changes: 4 additions & 17 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,15 @@
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:

Check failure on line 13 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/publish.yml#L13

job "publish-npm" needs job "release" which does not exist in this workflow [job-needs]
Raw output
.github/workflows/publish.yml:13:3: job "publish-npm" needs job "release" which does not exist in this workflow [job-needs]
name: Publish to NPM
runs-on: ubuntu-latest
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 bba6710

Please sign in to comment.