-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: #18 adds beta release workflow
- Loading branch information
Showing
2 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Release Dev | ||
|
||
on: | ||
push: | ||
branches: | ||
- beta | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
env: | ||
NPM_TOKEN: ${{secrets.NPM_TOKEN}} | ||
CI: true | ||
APP_STAGE: 'development' | ||
|
||
jobs: | ||
release-beta: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v3 | ||
with: | ||
role-to-assume: ${{ secrets.AWS_OIDC_ARN_DEV }} | ||
role-session-name: AWS_OIDC_ARN_DEV | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.x' | ||
|
||
- name: Install | ||
run: yarn | ||
|
||
- name: Build Storybook | ||
run: | | ||
yarn build:storybook | ||
- name: Deploy | ||
run: | | ||
yarn deploy | ||
- name: Bump Beta Version | ||
run: | | ||
npm version prerelease --preid=beta | ||
- name: Create Pull Request For Beta Version | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
commit_message: 'chore: bump beta version to ${{ npm pkg get version }}' | ||
title: 'chore: bump beta version to ${{ npm pkg get version }}' | ||
body: Update to version in package.json | ||
base: beta | ||
branch: chore/update-version-${{ npm pkg get version }} | ||
|
||
- name: Set Publish Beta Version | ||
run: | | ||
npm version prerelease --preid=beta | ||
- name: Publish | ||
run: | | ||
yarn publish --tag beta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters