Skip to content

Commit

Permalink
chore: release please action only creates/manages pr (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
bruuuuuuuce committed Jan 3, 2024
1 parent 3d334a7 commit 0cfdfc1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Publish to pub.dev

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'

jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
7 changes: 0 additions & 7 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,3 @@ jobs:
package-name: momento
default-branch: main
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false}]'
publish:
name: Publish to pub.dev
permissions:
id-token: write # Required for authentication using OIDC
needs: [release-please]
if: needs.release-please.outputs.release_created == 'true'
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1

0 comments on commit 0cfdfc1

Please sign in to comment.