Skip to content

Commit

Permalink
chore(cd): support creating prereleases on GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Aug 19, 2023
1 parent 7e7e5a7 commit a22426a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ jobs:
tag: ${{ github.ref }}
release_name: "Release v${{ env.RELEASE_VERSION }}"
body: "${{ needs.generate-changelog.outputs.release_body }}"
prerelease: ${{ contains(env.RELEASE_VERSION, 'alpha') || contains(env.RELEASE_VERSION, 'beta') || contains(env.RELEASE_VERSION, 'rc')}}
- name: Install node
if: matrix.build.NPM_PUBLISH == true
uses: actions/setup-node@v3
Expand Down Expand Up @@ -353,6 +354,7 @@ jobs:
tag: ${{ github.ref }}
release_name: "Release v${{ env.RELEASE_VERSION }}"
body: "${{ needs.generate-changelog.outputs.release_body }}"
prerelease: ${{ contains(env.RELEASE_VERSION, 'alpha') || contains(env.RELEASE_VERSION, 'beta') || contains(env.RELEASE_VERSION, 'rc')}}

publish-crates-io:
name: Publish on crates.io
Expand Down

0 comments on commit a22426a

Please sign in to comment.