Skip to content

Commit

Permalink
build: hack to have pre-release by default
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickDinh committed Mar 22, 2024
1 parent 734b23a commit 491c9a1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: create pre-release
if: steps.get_branch.outputs.branch == 'main' && inputs.production_release != 'true'
- name: create release - beta
if: ${{ github.ref_name == 'main' && inputs.production_release != 'true' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release --preid beta
run: 'npx semantic-release'

- name: create release
if: steps.get_branch.outputs.branch == 'main' && inputs.production_release == 'true'
- name: create release - beta
if: ${{ github.ref_name == 'main' && inputs.production_release == 'true' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
run: 'npx semantic-release --branches main'

- name: get release ID
id: get-release-id
Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,13 @@
},
"release": {
"branches": [
"main"
{
"name": "main",
"prerelease": "beta"
},
{
"name": "do-not-delete"
}
],
"plugins": [
[
Expand Down

0 comments on commit 491c9a1

Please sign in to comment.