Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris authored Oct 14, 2020
1 parent 422a157 commit 90f5c52
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions create-release-npm/action.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: 'Create release for npm'
description: 'Create release for npm'
inputs:
placeholder:
description: 'placeholder'
default: ''
draft:
description: 'Enable --draft flag'
default: 'true'
required: false
prerelease:
description: 'Enable --prerelease flag'
default: 'true'
required: false
runs:
using: "composite"
Expand All @@ -14,8 +18,8 @@ runs:
echo "See [CHANGELOG.md](https://github.com/${GITHUB_REPOSITORY}/blob/${TAG_NAME}/CHANGELOG.md) for more details." > ./release_notes.md
RELEASE_TITLE="$(jq -r '.name' ./package.json) ${TAG_NAME}"
gh release create "${TAG_NAME}" \
--draft \
--prerelease \
$(if [ "${{ inputs.draft }}" = "true" ]; then; echo "--draft"; fi) \
$(if [ "${{ inputs.prerelease }}" = "true" ]; then; echo "--prerelease"; fi) \
--title "${RELEASE_TITLE}" \
--notes-file ./release_notes.md
shell: bash

0 comments on commit 90f5c52

Please sign in to comment.