Fix build workflow: only create releases and publish npm from version tags
This commit is contained in:
parent
2ad76108f0
commit
264bc7fe2a
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
|
@ -73,12 +73,13 @@ jobs:
|
|||
with:
|
||||
tauriScript: bunx tauri
|
||||
args: --target ${{ matrix.target }}
|
||||
tagName: ${{ github.ref_name }}
|
||||
releaseName: 'OpenPencil ${{ github.ref_name }}'
|
||||
tagName: ${{ startsWith(github.ref, 'refs/tags/v') && github.ref_name || '' }}
|
||||
releaseName: ${{ startsWith(github.ref, 'refs/tags/v') && format('OpenPencil {0}', github.ref_name) || '' }}
|
||||
releaseBody: ${{ steps.changelog.outputs.release_notes }}
|
||||
releaseDraft: false
|
||||
|
||||
publish-npm:
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
|
|
|
|||
Loading…
Reference in a new issue