Skip to content

Commit 8728316

Browse files
RahulHereclaude
authored andcommitted
Fix TestPyPI upload reliability issues
- Add max-parallel: 1 to serialize platform package uploads - Add --skip-existing flag to skip already uploaded packages on retry This helps avoid 503 errors from TestPyPI rate limiting. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b10ca3f commit 8728316

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish-packages.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
needs: download-binaries
5555
runs-on: ubuntu-latest
5656
strategy:
57+
max-parallel: 1
5758
matrix:
5859
include:
5960
- platform: darwin-arm64
@@ -136,7 +137,7 @@ jobs:
136137
if: ${{ env.DRY_RUN != 'true' }}
137138
run: |
138139
cd packages/${{ matrix.platform }}
139-
twine upload --repository testpypi dist/* --username __token__ --password ${{ secrets.TEST_PYPI_TOKEN }}
140+
twine upload --repository testpypi --skip-existing dist/* --username __token__ --password ${{ secrets.TEST_PYPI_TOKEN }}
140141
141142
- name: Dry run - show package contents
142143
if: ${{ env.DRY_RUN == 'true' }}
@@ -183,7 +184,7 @@ jobs:
183184
- name: Publish to TestPyPI
184185
if: ${{ env.DRY_RUN != 'true' }}
185186
run: |
186-
twine upload --repository testpypi dist/* --username __token__ --password ${{ secrets.TEST_PYPI_TOKEN }}
187+
twine upload --repository testpypi --skip-existing dist/* --username __token__ --password ${{ secrets.TEST_PYPI_TOKEN }}
187188
188189
- name: Dry run - show package info
189190
if: ${{ env.DRY_RUN == 'true' }}

0 commit comments

Comments
 (0)