Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 0 additions & 49 deletions .github/workflows/publish.yml

This file was deleted.

17 changes: 5 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,13 @@ jobs:
dispatch-publish:
needs: process
runs-on: ubuntu-latest
if: needs.process.outputs.releases_created == 'true' || needs.process.outputs.prs_created == 'true'
# Only publish once a release is actually cut (release PR merged → tag + GitHub release).
if: needs.process.outputs.releases_created == 'true'
steps:
# Routes to publish-as-is.yml, the workflow npm authorizes for OIDC trusted publishing.
# (publish.yml is not a configured trusted publisher and fails with ENEEDAUTH.)
- name: Dispatch publish for releases
if: needs.process.outputs.releases_created == 'true'
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
event-type: publish-package
client-payload: '{"tag": "latest"}'

- name: Dispatch publish for prerelease
if: needs.process.outputs.prs_created == 'true'
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
event-type: publish-package
client-payload: '{"tag": "next"}'
event-type: publish-package-as-is
Loading