mirror of
https://github.com/different-ai/openwork
synced 2026-04-25 17:15:34 +02:00
ci(release): make npm publish wait for sidecar upload to complete
The publish-npm job now depends on release-openwrk-sidecars so the openwrk-vX.Y.Z GitHub release exists before 'pnpm --filter openwrk publish' runs. Uses always() with explicit result checks so the job still runs when sidecars are skipped (publish_sidecars=false).
This commit is contained in:
9
.github/workflows/release-macos-aarch64.yml
vendored
9
.github/workflows/release-macos-aarch64.yml
vendored
@@ -568,8 +568,13 @@ jobs:
|
||||
|
||||
publish-npm:
|
||||
name: Publish npm packages
|
||||
needs: [resolve-release, verify-release]
|
||||
if: needs.resolve-release.outputs.publish_npm == 'true'
|
||||
needs: [resolve-release, verify-release, release-openwrk-sidecars]
|
||||
if: |
|
||||
always() &&
|
||||
needs.resolve-release.result == 'success' &&
|
||||
needs.verify-release.result == 'success' &&
|
||||
(needs.release-openwrk-sidecars.result == 'success' || needs.release-openwrk-sidecars.result == 'skipped') &&
|
||||
needs.resolve-release.outputs.publish_npm == 'true'
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
RELEASE_TAG: ${{ needs.resolve-release.outputs.release_tag }}
|
||||
|
||||
Reference in New Issue
Block a user