Skip to content

bump version

bump version #29

Workflow file for this run

name: "Production release"
on:
pull_request:
branches:
- main
types: [closed]
env:
TITLE: ${{ github.event.pull_request.title }}
BODY: ${{ github.event.pull_request.body }}
jobs:
test:
if: ${{ github.event.pull_request.merged }}
uses: ./.github/workflows/test.yml
storybook:
if: ${{ github.event.pull_request.merged }}
needs: test
uses: ./.github/workflows/storybook.yml
secrets: inherit
with:
FIREBASE_TARGET: "ardrive-ui"
FIREBASE_CHANNEL: "live"
gh-release:
if: ${{ github.event.pull_request.merged }}
runs-on: ubuntu-latest
steps:
- name: "Create draft release"
uses: "actions/github-script@v6"
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
script: |
try {
await github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: process.env.TITLE,
name: process.env.TITLE,
body: process.env.BODY,
target_commitish: 'main',
draft: true
});
} catch (error) {
core.setFailed(error.message);
}