Fix publishing to CDN in release CI (#5877)

- Output should be `uppy.css` not `styles.css`, as it was before
- Actually run the bundle script in `build`
- Bundled packages are in theory always fixed, they will never be
resolved differently once published, so reflecting that with
`workspace:*`. Hopefully this also triggers changesets to always release
`uppy` if any of its dependencies change (doesn't happen currently)
- Don't force override existing releases in CI
This commit is contained in:
Merlijn Vos 2025-08-05 11:28:14 +02:00 committed by GitHub
parent 22957e487d
commit c4d97cd972
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 107 additions and 105 deletions

View file

@ -66,14 +66,14 @@ jobs:
- name: Upload `uppy` to CDN
if: steps.changesets.outputs.published == 'true'
run: node packages/uppy/upload-to-cdn.js uppy --force
run: node packages/uppy/upload-to-cdn.js uppy
env:
EDGLY_KEY: ${{secrets.EDGLY_KEY}}
EDGLY_SECRET: ${{secrets.EDGLY_SECRET}}
- name: Upload `@uppy/locales` to CDN if it was released
if: steps.changesets.outputs.published == 'true'
run: node packages/uppy/upload-to-cdn.js @uppy/locales --force
run: node packages/uppy/upload-to-cdn.js @uppy/locales
env:
EDGLY_KEY: ${{secrets.EDGLY_KEY}}
EDGLY_SECRET: ${{secrets.EDGLY_SECRET}}