File tree Expand file tree Collapse file tree 3 files changed +91
-0
lines changed Expand file tree Collapse file tree 3 files changed +91
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : 📦 Create Beta Release
2
+
3
+ on : workflow_dispatch
4
+
5
+ jobs :
6
+ merge-release :
7
+ name : Merge release into beta
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - name : checkout
11
+ uses : actions/checkout@v2
12
+ - name : merge
13
+ uses : mtanzi/action-automerge@v1
14
+ id : merge
15
+ with :
16
+ github_token : ${{ secrets.GITHUB_TOKEN }}
17
+ source : ' release'
18
+ target : ' beta'
19
+ merge-main :
20
+ name : Merge main into beta
21
+ runs-on : ubuntu-latest
22
+ steps :
23
+ - name : checkout
24
+ uses : actions/checkout@v2
25
+ - name : merge
26
+ uses : mtanzi/action-automerge@v1
27
+ id : merge
28
+ with :
29
+ github_token : ${{ secrets.GITHUB_TOKEN }}
30
+ source : ' main'
31
+ target : ' beta'
Original file line number Diff line number Diff line change
1
+ name : 📦 Create Release
2
+
3
+ on : workflow_dispatch
4
+
5
+ jobs :
6
+ merge-main :
7
+ name : Merge main into release
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - name : checkout
11
+ uses : actions/checkout@v2
12
+ - name : merge
13
+ uses : mtanzi/action-automerge@v1
14
+ id : merge
15
+ with :
16
+ github_token : ${{ secrets.GITHUB_TOKEN }}
17
+ source : ' main'
18
+ target : ' release'
Original file line number Diff line number Diff line change
1
+ name : 📦 Release
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - release
7
+ - beta
8
+ - ' *.x'
9
+
10
+ jobs :
11
+ lint :
12
+ uses : ./.github/workflows/lint.yml
13
+ with :
14
+ head : ${GITHUB_REF##*/}
15
+ test :
16
+ uses : ./.github/workflows/test.yml
17
+ with :
18
+ head : ${GITHUB_REF##*/}
19
+
20
+ release :
21
+ runs-on : ubuntu-latest
22
+ needs : [lint, test]
23
+ steps :
24
+ - name : Checkout
25
+ uses : actions/checkout@v3
26
+ with :
27
+ fetch-depth : 0
28
+ token : ${{ secrets.GITHUB_TOKEN }}
29
+
30
+ - run : git fetch origin ${{ inputs.base }}
31
+
32
+ - name : Setup Node.js
33
+ uses : ./.github/actions/nodejs
34
+
35
+ - name : Build Libraries
36
+ run : npx nx run-many --projects=tag:type:lib --target=build --configuration=ci --parallel
37
+
38
+ - name : Release
39
+ env :
40
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
42
+ run : npx semantic-release
You can’t perform that action at this time.
0 commit comments