Skip to content

Commit

Permalink
chore: add automatic rc release to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
darkbasic committed Dec 1, 2023
1 parent f2c8379 commit 6b80223
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ on:
- main

jobs:
release:
alpha:
uses: darkbasic/shared-config/.github/workflows/release-snapshot.yml@main
if: ${{ github.event.pull_request.title != 'Upcoming Release Changes' }}
with:
npmTag: alpha
buildScript: compile
Expand All @@ -15,7 +16,22 @@ jobs:
githubToken: ${{ secrets.GITHUB_TOKEN }}
npmToken: ${{ secrets.NPM_TOKEN }}

rc:
uses: darkbasic/shared-config/.github/workflows/release-snapshot.yml@main
if: ${{ github.event.pull_request.title == 'Upcoming Release Changes' }}
with:
npmTag: rc
buildScript: compile
nodeVersion: 18
restoreDeletedChangesets: true
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
npmToken: ${{ secrets.NPM_TOKEN }}

dependencies:
uses: darkbasic/shared-config/.github/workflows/changesets-dependencies.yaml@main
if: ${{ github.event.pull_request.title != 'Upcoming Release Changes' }}
with:
appId: ${{ vars.APP_ID }}
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
privateKey: ${{ secrets.APP_PRIVATE_KEY }}
3 changes: 2 additions & 1 deletion .github/workflows/release-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
with:
releaseScript: release
nodeVersion: 18
appId: ${{ vars.APP_ID }}
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
npmToken: ${{ secrets.NPM_TOKEN }}
privateKey: ${{ secrets.APP_PRIVATE_KEY }}

0 comments on commit 6b80223

Please sign in to comment.