File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11name : Release (Beta)
22
33on :
4+ pull_request_review :
5+ types :
6+ - submitted
47 push :
58 branches :
69 - develop
@@ -10,6 +13,35 @@ permissions:
1013 contents : read
1114
1215jobs :
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
You can’t perform that action at this time.
0 commit comments