Skip to content

Commit 356b2aa

Browse files
committed
chore: merge fast forward workflow to beta release
1 parent 6558d59 commit 356b2aa

2 files changed

Lines changed: 32 additions & 37 deletions

File tree

.github/workflows/fast-forward.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/release-beta.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Release (Beta)
22

33
on:
4+
pull_request_review:
5+
types:
6+
- submitted
47
push:
58
branches:
69
- develop
@@ -10,6 +13,35 @@ permissions:
1013
contents: read
1114

1215
jobs:
16+
approved:
17+
if: |
18+
github.event.pull_request.head.ref == 'develop' &&
19+
github.event.pull_request.base.ref == 'main' &&
20+
github.event.review.state == 'approved'
21+
runs-on: ubuntu-latest
22+
permissions:
23+
contents: write
24+
steps:
25+
- uses: actions/checkout@v6
26+
with:
27+
fetch-depth: 0
28+
- run: |
29+
git checkout main
30+
git merge --ff-only "${{ github.event.pull_request.head.sha }}"
31+
git push origin main
32+
33+
deploy:
34+
needs:
35+
- approved
36+
permissions:
37+
contents: write
38+
packages: write
39+
# Required for npm OIDC
40+
id-token: write
41+
# Call workflow explicitly because events from actions cannot trigger more actions
42+
uses: ./.github/workflows/release.yml
43+
secrets: inherit
44+
1345
release:
1446
name: semantic-release
1547
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)