Skip to content

Commit 6b80223

Browse files
committed
chore: add automatic rc release to CI
1 parent f2c8379 commit 6b80223

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.github/workflows/pr.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ on:
55
- main
66

77
jobs:
8-
release:
8+
alpha:
99
uses: darkbasic/shared-config/.github/workflows/release-snapshot.yml@main
10+
if: ${{ github.event.pull_request.title != 'Upcoming Release Changes' }}
1011
with:
1112
npmTag: alpha
1213
buildScript: compile
@@ -15,7 +16,22 @@ jobs:
1516
githubToken: ${{ secrets.GITHUB_TOKEN }}
1617
npmToken: ${{ secrets.NPM_TOKEN }}
1718

19+
rc:
20+
uses: darkbasic/shared-config/.github/workflows/release-snapshot.yml@main
21+
if: ${{ github.event.pull_request.title == 'Upcoming Release Changes' }}
22+
with:
23+
npmTag: rc
24+
buildScript: compile
25+
nodeVersion: 18
26+
restoreDeletedChangesets: true
27+
secrets:
28+
githubToken: ${{ secrets.GITHUB_TOKEN }}
29+
npmToken: ${{ secrets.NPM_TOKEN }}
30+
1831
dependencies:
1932
uses: darkbasic/shared-config/.github/workflows/changesets-dependencies.yaml@main
33+
if: ${{ github.event.pull_request.title != 'Upcoming Release Changes' }}
34+
with:
35+
appId: ${{ vars.APP_ID }}
2036
secrets:
21-
githubToken: ${{ secrets.GITHUB_TOKEN }}
37+
privateKey: ${{ secrets.APP_PRIVATE_KEY }}

.github/workflows/release-stable.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
with:
1111
releaseScript: release
1212
nodeVersion: 18
13+
appId: ${{ vars.APP_ID }}
1314
secrets:
14-
githubToken: ${{ secrets.GITHUB_TOKEN }}
1515
npmToken: ${{ secrets.NPM_TOKEN }}
16+
privateKey: ${{ secrets.APP_PRIVATE_KEY }}

0 commit comments

Comments
 (0)