Skip to content

Commit

Permalink
fix: update bump-versions.sh to work with yarn@4.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
F-OBrien authored and adamdossa committed Aug 27, 2024
1 parent b59a7c1 commit 7e32b13
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions .github/bump-versions.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
#!/bin/bash

# Exit immediately if a command exits with a non-zero status
set -e

# Check if a version argument is provided
if [ -z "$1" ]; then
echo "Usage: $0 <version>"
exit 1
fi

VERSION=${1}

echo "Updating to version $VERSION"

git pull

yarn workspace @polymeshassociation/extension-core version --no-git-tag-version --no-commit-hooks --new-version ${1}
yarn workspace @polymeshassociation/extension-ui version --no-git-tag-version --no-commit-hooks --new-version ${1}
yarn workspace @polymeshassociation/extension version --no-git-tag-version --no-commit-hooks --new-version ${1}
yarn workspace @polymeshassociation/extension add @polymeshassociation/extension-core@${1} @polymeshassociation/extension-ui@${1}
yarn workspace @polymeshassociation/extension-core version "$VERSION"
yarn workspace @polymeshassociation/extension-ui version "$VERSION"
yarn workspace @polymeshassociation/extension version "$VERSION"

yarn workspace @polymeshassociation/extension add @polymeshassociation/extension-core@"$VERSION" @polymeshassociation/extension-ui@"$VERSION"

yarn build

git add -A
git commit -m "chore(release): update package versions to ${1} [skip ci]"
git push
git commit -m "chore(release): update package versions to $VERSION [skip ci]"
git push

0 comments on commit 7e32b13

Please sign in to comment.