Skip to content

Commit f5aa239

Browse files
committed
fix: improve jsDelivr Cache purge
1 parent 3a43773 commit f5aa239

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@ jobs:
160160
echo "::notice::Publishing to npm (stable)"
161161
npm publish --provenance --access public
162162
163+
- name: Purge jsDelivr Cache
164+
if: inputs.dry_run != true
165+
uses: ./.github/actions/purge-jsdelivr
166+
with:
167+
package: cloudinary-video-player
168+
163169
- name: Dry Run Summary
164170
if: inputs.dry_run == true
165171
run: |
@@ -400,6 +406,12 @@ jobs:
400406
echo "::notice::Publishing to npm (edge)"
401407
npm publish --tag edge --provenance --access public
402408
409+
- name: Purge jsDelivr Cache
410+
if: inputs.dry_run != true
411+
uses: ./.github/actions/purge-jsdelivr
412+
with:
413+
package: cloudinary-video-player@edge
414+
403415
- name: Dry Run Summary
404416
if: inputs.dry_run == true
405417
run: |
@@ -457,21 +469,3 @@ jobs:
457469
SLACK_MESSAGE: ${{ steps.set-messages.outputs.SLACK_MESSAGE }}
458470
SLACK_FOOTER: ${{ steps.set-messages.outputs.SLACK_FOOTER }}
459471

460-
- name: Determine Package for Cache Purge
461-
id: purge-cache
462-
run: |
463-
if [[ "${{ needs.check-release.outputs.is_release }}" == "true" ]]; then
464-
if [[ "${{ needs.publish-stable.result }}" == "success" ]]; then
465-
echo "package=cloudinary-video-player" >> $GITHUB_OUTPUT
466-
fi
467-
else
468-
if [[ "${{ needs.publish-edge.result }}" == "success" ]]; then
469-
echo "package=cloudinary-video-player@edge" >> $GITHUB_OUTPUT
470-
fi
471-
fi
472-
473-
- name: Purge jsDelivr Cache
474-
if: steps.purge-cache.outputs.package != ''
475-
uses: ./.github/actions/purge-jsdelivr
476-
with:
477-
package: ${{ steps.purge-cache.outputs.package }}

0 commit comments

Comments
 (0)