File tree Expand file tree Collapse file tree 2 files changed +37
-32
lines changed Expand file tree Collapse file tree 2 files changed +37
-32
lines changed Original file line number Diff line number Diff line change 1+ name : Fast-forward
2+
3+ on :
4+ pull_request_review :
5+ types :
6+ - submitted
7+
8+ permissions :
9+ contents : write
10+
11+ jobs :
12+ approved :
13+ if : |
14+ github.event.pull_request.head.ref == 'develop' &&
15+ github.event.pull_request.base.ref == 'main' &&
16+ github.event.review.state == 'approved'
17+ runs-on : ubuntu-latest
18+ steps :
19+ - uses : actions/checkout@v6
20+ with :
21+ fetch-depth : 0
22+ - run : |
23+ git checkout main
24+ git merge --ff-only "${{ github.event.pull_request.head.sha }}"
25+ git push origin main
26+
27+ publish :
28+ needs :
29+ - approved
30+ permissions :
31+ contents : write
32+ packages : write
33+ # Required for npm OIDC
34+ id-token : write
35+ # Call workflow explicitly because events from actions cannot trigger more actions
36+ uses : ./.github/workflows/release.yml
37+ secrets : inherit
Original file line number Diff line number Diff line change 11name : Release (Beta)
22
33on :
4- pull_request_review :
5- types :
6- - submitted
74 push :
85 branches :
96 - develop
@@ -13,35 +10,6 @@ permissions:
1310 contents : read
1411
1512jobs :
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-
4513 release :
4614 name : semantic-release
4715 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments