mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-18 00:55:35 +00:00
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:
parent
ea04a4d5fe
commit
a12a6ce4c3
6 changed files with 52 additions and 22 deletions
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue