diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml new file mode 100644 index 00000000..919bd915 --- /dev/null +++ b/.github/workflows/release-beta.yml @@ -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 diff --git a/.github/workflows/release-prod.yml b/.github/workflows/release-prod.yml index d11240cc..62485b44 100644 --- a/.github/workflows/release-prod.yml +++ b/.github/workflows/release-prod.yml @@ -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 }}'