diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 693ef7ce..00c3fb1b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -52,7 +52,10 @@ jobs: # Add the new version in package.json file sed -i "s#version\":\ \"\(.*\)\",#version\":\ \"${{ steps.TAG_UTIL.outputs.bootcExtensionVersion }}\",#g" package.json - git add package.json + sed -i "s#version\":\ \"\(.*\)\",#version\":\ \"${{ steps.TAG_UTIL.outputs.bootcExtensionVersion }}\",#g" packages/backend/package.json + sed -i "s#version\":\ \"\(.*\)\",#version\":\ \"${{ steps.TAG_UTIL.outputs.bootcExtensionVersion }}\",#g" packages/frontend/package.json + git add package.json packages/backend/package.json packages/frontend/package.json + # commit the changes git commit -m "chore: 🥁 tagging ${{ steps.TAG_UTIL.outputs.githubTag }} 🥳" @@ -83,7 +86,9 @@ jobs: bumpedBranchName="bump-to-${bumpedVersion}" git checkout -b "${bumpedBranchName}" sed -i "s#version\":\ \"\(.*\)\",#version\":\ \"${bumpedVersion}-next\",#g" package.json - git add package.json + sed -i "s#version\":\ \"\(.*\)\",#version\":\ \"${bumpedVersion}-next\",#g" packages/backend/package.json + sed -i "s#version\":\ \"\(.*\)\",#version\":\ \"${bumpedVersion}-next\",#g" packages/frontend/package.json + git add package.json packages/backend/package.json packages/frontend/package.json git commit -s --amend -m "chore: bump version to ${bumpedVersion}" git push origin "${bumpedBranchName}" echo -e "📢 Bump version to ${bumpedVersion}\n\n${{ steps.TAG_UTIL.outputs.bootcExtensionVersion }} has been released.\n\n Time to switch to the new ${bumpedVersion} version 🥳" > /tmp/pr-title @@ -94,6 +99,8 @@ jobs: echo "🔅 Mark the PR as being ok to be merged automatically" gh pr merge "${pullRequestUrl}" --auto --rebase sed -i "s#version\":\ \"\(.*\)\",#version\":\ \"${CURRENT_VERSION}\",#g" package.json + sed -i "s#version\":\ \"\(.*\)\",#version\":\ \"${CURRENT_VERSION}\",#g" packages/backend/package.json + sed -i "s#version\":\ \"\(.*\)\",#version\":\ \"${CURRENT_VERSION}\",#g" packages/frontend/package.json env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}