Update versions in readme's after release (#5883)

It didn't work in CI:
https://github.com/transloadit/uppy/actions/runs/16771298008/job/47486827416#step:16:1

Instead of trying to hack in an extra commit, now a script runs on the
`version` command, which resolves the versions based on changesets,
which is ran before `publish` so it should become part of the changeset
commit (hopefully)
This commit is contained in:
Merlijn Vos 2025-08-07 09:31:15 +02:00 committed by GitHub
parent ea04a4d5fe
commit a12a6ce4c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 52 additions and 22 deletions

View file

@ -78,23 +78,6 @@ jobs:
EDGLY_KEY: ${{secrets.EDGLY_KEY}}
EDGLY_SECRET: ${{secrets.EDGLY_SECRET}}
- name: Update CDN version references
if: steps.changesets.outputs.published == 'true'
run: |
VERSION=$(yarn workspace uppy exec npm pkg get version | grep -o '"[0-9]*\.[0-9]*\.[0-9]*"' | tr -d '"')
sed -i "s|https://releases\.transloadit\.com/uppy/v[0-9]*\.[0-9]*\.[0-9]*/|https://releases.transloadit.com/uppy/v$VERSION/|g" README.md
sed -i "s|https://releases\.transloadit\.com/uppy/v[0-9]*\.[0-9]*\.[0-9]*/|https://releases.transloadit.com/uppy/v$VERSION/|g" BUNDLE-README.md
- name: Commit README updates
if: steps.changesets.outputs.published == 'true'
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add README.md BUNDLE-README.md
git commit -m "Update CDN version references to latest release" || exit 0
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# See also companion-deploy.yml
docker: