@krx3d/tizentube2 1.31.570 → 1.31.580
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -186,11 +186,15 @@ env:
|
|
|
186
186
|
# refused request writes nothing, and if npm allows this again for
|
|
187
187
|
# automation, removal resumes on the next run with no change here.
|
|
188
188
|
# Set to 'false' only to stop attempting it altogether.
|
|
189
|
-
|
|
189
|
+
# 'false': npm refuses unpublish from this granular bypass-2FA token
|
|
190
|
+
# (see "Decide versions" below), so every attempt only produced a 403 and a
|
|
191
|
+
# warning. Old versions are deprecated instead; scripts/npm-cleanup removes
|
|
192
|
+
# them locally.
|
|
193
|
+
ALLOW_UNPUBLISH: 'false'
|
|
190
194
|
|
|
191
195
|
jobs:
|
|
192
196
|
build-publish-clean:
|
|
193
|
-
runs-on: ubuntu-
|
|
197
|
+
runs-on: ubuntu-24.04
|
|
194
198
|
|
|
195
199
|
# Prevent loop on bot commits and on our own "[skip ci]" commits.
|
|
196
200
|
#
|
|
@@ -956,10 +960,22 @@ jobs:
|
|
|
956
960
|
# continue-on-error here, a benign throttle still failed the whole
|
|
957
961
|
# job even though that fallback ran and succeeded.
|
|
958
962
|
continue-on-error: true
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
+
# Was egad13/purge-jsdelivr-cache@v1, which targets Node 20 (deprecated
|
|
964
|
+
# on the runners). jsDelivr's purge API is one JSON POST, so it is done
|
|
965
|
+
# here directly: paths without the host, all in one request.
|
|
966
|
+
env:
|
|
967
|
+
CDN_URLS: ${{ steps.cdn_urls.outputs.urls }}
|
|
968
|
+
run: |
|
|
969
|
+
set -euo pipefail
|
|
970
|
+
BODY=$(node -e 'const u=(process.env.CDN_URLS||"").split(",").filter(Boolean).map(x=>x.replace(/^https:\/\/cdn\.jsdelivr\.net/,""));process.stdout.write(JSON.stringify({path:u}))')
|
|
971
|
+
echo "Purging $(echo "$BODY" | node -e 'let s="";process.stdin.on("data",d=>s+=d).on("end",()=>console.log(JSON.parse(s).path.length))') paths"
|
|
972
|
+
for attempt in 1 2 3; do
|
|
973
|
+
CODE=$(curl -s -o /tmp/purge.json -w '%{http_code}' -X POST https://purge.jsdelivr.net/ -H 'Content-Type: application/json' -d "$BODY" || true)
|
|
974
|
+
echo "attempt ${attempt}: HTTP ${CODE}"; head -c 600 /tmp/purge.json || true; echo
|
|
975
|
+
if [ "$CODE" -ge 200 ] && [ "$CODE" -lt 300 ]; then exit 0; fi
|
|
976
|
+
sleep 5
|
|
977
|
+
done
|
|
978
|
+
exit 1
|
|
963
979
|
|
|
964
980
|
- name: Purge individual URLs (fallback if batch fails)
|
|
965
981
|
if: steps.confirm_publish.outputs.confirmed == 'true' && failure()
|
|
@@ -17,7 +17,7 @@ jobs:
|
|
|
17
17
|
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
|
|
18
18
|
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
|
|
19
19
|
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
|
|
20
|
-
runs-on: ubuntu-
|
|
20
|
+
runs-on: ubuntu-24.04
|
|
21
21
|
permissions:
|
|
22
22
|
contents: write
|
|
23
23
|
pull-requests: write
|