Skip to content

Commit ccef581

Browse files
chore(build): remove dry run
1 parent 1c3b062 commit ccef581

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ on:
33
workflow_dispatch:
44
branches:
55
- main
6-
inputs:
7-
dryRun:
8-
description: 'run in dry-run mode'
9-
default: false
10-
required: true
11-
type: 'boolean'
126

137
jobs:
148
release:
@@ -41,18 +35,16 @@ jobs:
4135
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4236

4337
- name: Nothing to release
44-
if: ${{ env.NEXT_RELEASE_VERSION == '' && github.event.inputs.dryRun == false }}
38+
if: ${{ env.NEXT_RELEASE_VERSION == '' }}
4539
uses: actions/github-script@v8
4640
with:
4741
script: |
4842
core.setFailed('Nothing to release')
4943
5044
- name: Install dependencies
51-
if: ${{ github.event.inputs.dryRun == false }}
5245
run: npm ci
5346

5447
- name: Prepare for the Release
55-
if: ${{ github.event.inputs.dryRun == false }}
5648
env:
5749
REACT_APP_VERSION: ${{ env.NEXT_RELEASE_VERSION }}
5850
run: |
@@ -64,7 +56,6 @@ jobs:
6456
npm run build:definitions
6557
6658
- name: Semantic Release
67-
if: ${{ github.event.inputs.dryRun == false }}
6859
id: semantic
6960
uses: cycjimmy/semantic-release-action@v6
7061
with:
@@ -76,28 +67,25 @@ jobs:
7667
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
7768

7869
- name: Release failed
79-
if: ${{ steps.semantic.outputs.new_release_published == 'false' && github.event.inputs.dryRun == false }}
70+
if: ${{ steps.semantic.outputs.new_release_published == 'false' }}
8071
uses: actions/github-script@v8
8172
with:
8273
script: |
8374
core.setFailed('Release failed')
8475
8576
- name: Release published
86-
if: ${{ github.event.inputs.dryRun == false }}
8777
run: |
8878
echo ${{ steps.semantic.outputs.new_release_version }}
8979
echo ${{ steps.semantic.outputs.new_release_major_version }}
9080
echo ${{ steps.semantic.outputs.new_release_minor_version }}
9181
echo ${{ steps.semantic.outputs.new_release_patch_version }}
9282
9383
- name: Prepare released version for uploading
94-
if: ${{ github.event.inputs.dryRun == false }}
9584
shell: bash
9685
run: |
9786
echo ${{ steps.semantic.outputs.new_release_version }} > released-version.txt
9887
9988
- name: Upload released version
100-
if: ${{ github.event.inputs.dryRun == false }}
10189
uses: actions/upload-artifact@v5
10290
with:
10391
name: released-version

0 commit comments

Comments
 (0)