From 595dcff6ca1c810d2d4a2b3396019d25dc7b31d6 Mon Sep 17 00:00:00 2001 From: Daniel Saewitz Date: Tue, 2 Jan 2024 19:21:00 -0500 Subject: [PATCH] Fix create release step --- .github/workflows/release.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 49f99eb..d4f9a3b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -19,7 +19,15 @@ jobs: - uses: JS-DevTools/npm-publish@v2 with: token: ${{ secrets.NPM_AUTH_TOKEN }} - - uses: JS-DevTools/npm-publish@v2 + - name: Create Release + if: steps.publish.outputs.type != 'none' + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - token: ${{ secrets.REPO_TOKEN }} - registry: 'https://npm.pkg.github.com' + tag_name: ${{ steps.publish.outputs.version }} + release_name: Release ${{ steps.publish.outputs.version }} + body: ${{ steps.publish.outputs.version }} + draft: false + prerelease: false \ No newline at end of file