Skip to content

Commit 178a617

Browse files
committed
ci(workflows): update prerelease check
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
1 parent 6b08e88 commit 178a617

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch
1010
# - https://docs.github.com/actions/using-workflows/using-github-cli-in-workflows
1111
# - https://github.com/actions/checkout
12-
# - https://github.com/actions/github-script
1312
# - https://github.com/bdougie/close-issues-based-on-label
1413
# - https://github.com/crazy-max/ghaction-import-gpg
1514
# - https://github.com/dawidd6/action-delete-branch
@@ -39,7 +38,7 @@ jobs:
3938
env:
4039
REF: ${{ github.event.inputs.sha || github.head_ref }}
4140
outputs:
42-
prerelease: ${{ steps.prerelease.outputs.result }}
41+
prerelease: ${{ steps.dist-tag.outputs.prerelease }}
4342
tag: ${{ steps.tag.outputs.result }}
4443
version: ${{ steps.version.outputs.result }}
4544
steps:
@@ -66,14 +65,6 @@ jobs:
6665
uses: flex-development/dist-tag-action@1.1.0
6766
with:
6867
target: ${{ steps.version.outputs.result }}
69-
- id: prerelease
70-
name: Check for prerelease
71-
uses: actions/github-script@v6.1.1
72-
env:
73-
DIST_TAG: ${{ steps.dist-tag.outputs.tag }}
74-
with:
75-
# todo: calculate number of prereleases to include in release notes
76-
script: return !!process.env.DIST_TAG
7768
publish:
7869
needs: metadata
7970
permissions:
@@ -129,7 +120,6 @@ jobs:
129120
NODE_OPTIONS: --es-module-specifier-resolution=node
130121
- id: release-notes
131122
name: Generate release notes
132-
# todo: handle prereleases
133123
run: yarn conventional-changelog -o $NOTES_FILE
134124
env:
135125
TS_NODE_PROJECT: ./tsconfig.tsnode.json

0 commit comments

Comments
 (0)