Skip to content

Commit 18679fd

Browse files
committed
chore: add optional draft input to the releaser workflow
1 parent b7d46dd commit 18679fd

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/releaser.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
required: false
1515
type: string
1616
default: '/'
17+
draft:
18+
required: false
19+
type: boolean
20+
default: false
1721
outputs:
1822
json:
1923
description: JSON aggregation of release.json artifacts
@@ -147,7 +151,7 @@ jobs:
147151
if: steps.tag.outputs.exists == 'false'
148152
uses: galargh/action-gh-release@571276229e7c9e6ea18f99bad24122a4c3ec813f # https://github.com/galargh/action-gh-release/pull/1
149153
with:
150-
draft: false
154+
draft: ${{ inputs.draft }}
151155
tag_name: ${{ steps.version.outputs.tag }}
152156
generate_release_notes: true
153157
target_commitish: ${{ github.sha }}
@@ -160,7 +164,7 @@ jobs:
160164
SOURCE: ${{ matrix.source }}
161165
RELEASE: |
162166
{
163-
"draft": false,
167+
"draft": ${{ inputs.draft }},
164168
"version": "${{ steps.version.outputs.tag }}",
165169
"url": "${{ steps.release.outputs.url }}",
166170
"id": "${{ steps.release.outputs.id }}",

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## Unreleased
88

9+
## [1.0.20] - 2025-02-24
10+
### Added
11+
- an optional `draft` input to the `releaser` workflow
12+
913
## [1.0.19] - 2025-02-24
1014
### Added
1115
- an optional `spell-check` step to the `js-test-and-release` workflow

0 commit comments

Comments
 (0)