Skip to content

Commit 62f849f

Browse files
committed
build: wip
1 parent 919491c commit 62f849f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/actions/create-release/action.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ runs:
3939
shell: bash
4040

4141
- name: create release - beta
42-
if: ${{ github.ref_name == "main" && inputs.production_release != "true" }}
42+
if: ${{ inputs.production_release != 'true' }}
4343
env:
4444
GITHUB_TOKEN: ${{ inputs.github_token }}
4545
run: 'npx semantic-release'
4646
shell: bash
4747

48-
- name: create release - beta
49-
if: ${{ github.ref_name == "main" && inputs.production_release == "true" }}
48+
- name: create release
49+
if: ${{ inputs.production_release == 'true' }}
5050
env:
5151
GITHUB_TOKEN: ${{ inputs.github_token }}
5252
run: 'npx semantic-release --branches main'
@@ -55,7 +55,7 @@ runs:
5555
- name: get release ID
5656
id: get-release-id
5757
uses: actions/github-script@v7
58-
if: steps.get-next-version.outputs.new-release-published == "true"
58+
if: steps.get-next-version.outputs.new-release-published == 'true'
5959
with:
6060
script: |
6161
const { data } = await github.rest.repos.getReleaseByTag({

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
uses: ./.github/actions/create-release
6363
with:
6464
github_token: ${{ secrets.GITHUB_TOKEN }}
65-
production_release: ${{ inputs.production_release }}
65+
production_release: ${{ github.ref_name == 'main' && inputs.production_release == 'true' }}
6666
node_version: 20
6767
outputs:
6868
release_published: ${{ steps.create-release-action.outputs.new-release-published }}

0 commit comments

Comments
 (0)