Skip to content

Commit

Permalink
chore: Create release-please.yml (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
bruuuuuuuce committed Jan 3, 2024
1 parent 2937864 commit 82310d4
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
name: Release Please
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
token: ${{ secrets.MOMENTO_MACHINE_USER_GITHUB_TOKEN }}
release-type: dart
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:
runs-on: ubuntu-latest
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'
steps:
- uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1

0 comments on commit 82310d4

Please sign in to comment.