fix: release workflow (#5053)

Couple fixes to the release workflow in order to make it work as
intended
This commit is contained in:
Quentin G 2024-04-19 15:16:48 +02:00 committed by GitHub
parent 3a959248f9
commit 9c8cb52952
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,7 +21,7 @@ jobs:
- name: Sanitize version
id: sanitize
run: |
echo version=$(echo ${{ github.event.inputs.version }} | sed 's/^v//') >> $GITHUB_ENV
echo version=$(echo ${{ github.event.inputs.version }} | sed 's/^v//') >> $GITHUB_OUTPUT
- name: Update versions
working-directory: packages
@ -29,13 +29,13 @@ jobs:
for dir in twenty-docs twenty-emails twenty-front twenty-server twenty-ui twenty-website
do
cd $dir
npm version ${{ steps.sanitize.outputs.version }} --no-git-tag-version
yarn version ${{ steps.sanitize.outputs.version }}
cd ..
done
# Make sure we have the latest changes before committing
- name: Pull changes
run: git pull --rebase
run: git pull
- uses: stefanzweifel/git-auto-commit-action@v4
with: