Skip to content

Commit 491c9a1

Browse files
committed
build: hack to have pre-release by default
1 parent 734b23a commit 491c9a1

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,17 @@ jobs:
7575
env:
7676
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7777

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

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

9090
- name: get release ID
9191
id: get-release-id

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,13 @@
7474
},
7575
"release": {
7676
"branches": [
77-
"main"
77+
{
78+
"name": "main",
79+
"prerelease": "beta"
80+
},
81+
{
82+
"name": "do-not-delete"
83+
}
7884
],
7985
"plugins": [
8086
[

0 commit comments

Comments
 (0)