Only publish on release

This commit is contained in:
Justin Spahr-Summers 2024-11-21 21:56:42 +00:00
commit aac117f7b3
No known key found for this signature in database

View file

@ -60,12 +60,15 @@ jobs:
path: src/${{ matrix.package }}/dist/
publish:
runs-on: ubuntu-latest
needs: [build, detect-packages]
if: github.event_name == 'release'
strategy:
matrix:
package: ${{ fromJson(needs.detect-packages.outputs.packages) }}
name: Publish ${{ matrix.package }}
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write # Required for trusted publishing