|
9 | 9 | # - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch |
10 | 10 | # - https://docs.github.com/actions/using-workflows/using-github-cli-in-workflows |
11 | 11 | # - https://github.com/actions/checkout |
12 | | -# - https://github.com/actions/github-script |
13 | 12 | # - https://github.com/bdougie/close-issues-based-on-label |
14 | 13 | # - https://github.com/crazy-max/ghaction-import-gpg |
15 | 14 | # - https://github.com/dawidd6/action-delete-branch |
|
39 | 38 | env: |
40 | 39 | REF: ${{ github.event.inputs.sha || github.head_ref }} |
41 | 40 | outputs: |
42 | | - prerelease: ${{ steps.prerelease.outputs.result }} |
| 41 | + prerelease: ${{ steps.dist-tag.outputs.prerelease }} |
43 | 42 | tag: ${{ steps.tag.outputs.result }} |
44 | 43 | version: ${{ steps.version.outputs.result }} |
45 | 44 | steps: |
|
66 | 65 | uses: flex-development/dist-tag-action@1.1.0 |
67 | 66 | with: |
68 | 67 | 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 |
77 | 68 | publish: |
78 | 69 | needs: metadata |
79 | 70 | permissions: |
@@ -129,7 +120,6 @@ jobs: |
129 | 120 | NODE_OPTIONS: --es-module-specifier-resolution=node |
130 | 121 | - id: release-notes |
131 | 122 | name: Generate release notes |
132 | | - # todo: handle prereleases |
133 | 123 | run: yarn conventional-changelog -o $NOTES_FILE |
134 | 124 | env: |
135 | 125 | TS_NODE_PROJECT: ./tsconfig.tsnode.json |
|
0 commit comments