Skip to content

Added delay before purging jsDelivr cache #23107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ jobs:
- run: yarn nx affected -t test:unit --base=${{ needs.job_setup.outputs.BASE_COMMIT }}

- uses: actions/upload-artifact@v4
if: startsWith(matrix.node, '18')
if: startsWith(matrix.node, '20')
with:
name: unit-coverage
path: ghost/*/coverage/cobertura-coverage.xml
Expand Down Expand Up @@ -582,7 +582,7 @@ jobs:
echo "test_time=$(($endTime-$startTime))" >> $GITHUB_ENV

- uses: actions/upload-artifact@v4
if: startsWith(matrix.node, '18') && contains(matrix.env.DB, 'mysql')
if: startsWith(matrix.node, '20') && contains(matrix.env.DB, 'mysql')
with:
name: e2e-coverage
path: |
Expand Down Expand Up @@ -1332,7 +1332,13 @@ jobs:
if: steps.version_check.outputs.version_changed == 'true'
run: echo "${{ steps.cdn_paths.outputs.cdn_paths }}"

- name: Purge jsdelivr cache
- name: Wait before purging jsDelivr cache
if: steps.version_check.outputs.version_changed == 'true' && matrix.package_name == '@tryghost/admin-x-activitypub'
run: |
echo "Purging jsDelivr cache immediately after publishing a new version on NPM is unreliable. Waiting 1 minute before purging cache..."
sleep 60

- name: Purge jsDelivr cache
if: steps.version_check.outputs.version_changed == 'true'
uses: gacts/purge-jsdelivr-cache@v1
with:
Expand Down
Loading