Skip to content

Commit

Permalink
Fix create release step
Browse files Browse the repository at this point in the history
  • Loading branch information
switz committed Jan 3, 2024
1 parent 595dcff commit 96db1bf
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,12 @@ jobs:
- uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Create Release
if: steps.publish.outputs.type != 'none'
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@v1.3.1
- uses: ncipollo/release-action@v1
with:
tag_name: ${{ steps.publish.outputs.version }}
release_name: Release ${{ steps.publish.outputs.version }}
body: ${{ steps.publish.outputs.version }}
draft: false
prerelease: false
tag: ${{ steps.package-version.outputs.current-version}}
artifacts: "dist/"
allowUpdates: true
removeArtifacts: true

0 comments on commit 96db1bf

Please sign in to comment.