Skip to content

Commit 33fd875

Browse files
committed
Revert "chore: merge fast forward workflow to beta release"
This reverts commit 356b2aa.
1 parent bf3b860 commit 33fd875

File tree

2 files changed

+37
-32
lines changed

2 files changed

+37
-32
lines changed

.github/workflows/fast-forward.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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

.github/workflows/release-beta.yml

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

33
on:
4-
pull_request_review:
5-
types:
6-
- submitted
74
push:
85
branches:
96
- develop
@@ -13,35 +10,6 @@ permissions:
1310
contents: read
1411

1512
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-
4513
release:
4614
name: semantic-release
4715
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)