Skip to content

Commit

Permalink
chore: adjust release process workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
arnautov-anton committed Oct 12, 2023
1 parent 5d87d9d commit bd32b26
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
name: Release
on:
push:
branches:
- master
- main
- beta
workflow_dispatch:
inputs:
dry_run:
description: 'Run semantic-release in "dry run" mode'
default: false
type: boolean

env:
NODE_OPTIONS: --max_old_space_size=4096
jobs:
release:
name: Release
runs-on: ubuntu-latest
# GH does not allow to limit branches in the workflow_dispatch settings so this here is a safety measure
if: ${{ github.ref_name == 'master' || github.ref_name == 'rc' || github.ref_name == 'release-v9' }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -28,4 +32,6 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn semantic-release
run: >
yarn semantic-release
${{ inputs.dry_run && '--dry-run' || '' }}

0 comments on commit bd32b26

Please sign in to comment.