Skip to content

Commit

Permalink
feat: #18 adds beta release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcvay committed Feb 19, 2024
1 parent a8f378f commit 4da55e3
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 1 deletion.
69 changes: 69 additions & 0 deletions .github/workflows/release-beta.yml
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
11 changes: 10 additions & 1 deletion .github/workflows/release-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,20 @@ jobs:
run: |
yarn build:storybook
- name: Create Pull Request For Beta Channel
uses: peter-evans/create-pull-request@v5
with:
commit_message: 'chore: update beta channel ${{ steps.tagName.outputs.version }}'
title: 'chore: update beta channel ${{ steps.tagName.outputs.version }}'
body: Update beta channel
base: beta
branch: chore/update-beta-${{ steps.tagName.outputs.version }}

- name: Package Version Bump
run: |
yarn version ${{ steps.tagName.outputs.version }}
- name: Create Pull Request
- name: Create Pull Request For Version
uses: peter-evans/create-pull-request@v5
with:
commit_message: 'chore: bump version to ${{ steps.tagName.outputs.version }}'
Expand Down

0 comments on commit 4da55e3

Please sign in to comment.