Skip to content

Commit

Permalink
ci(fix): change script to get version number from release please mani… (
Browse files Browse the repository at this point in the history
#704)

* ci(fix): change script to get version number from release please manifest

* chore: update error output
  • Loading branch information
daine authored Dec 11, 2024
1 parent a893339 commit e65bb27
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions utils/scripts/upload_to_cdn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

PACKAGE_NAME=$1

## Path to lerna.json
LERNA_JSON="lerna.json"
## Path to the release manifest which has the version numbers
RELEASE_PLEASE_MANIFEST=".release-please-manifest.json"

# Check if lerna.json exists
if [ ! -f "$LERNA_JSON" ]; then
echo "lerna.json not found!"
if [ ! -f "$RELEASE_PLEASE_MANIFEST" ]; then
echo ".release-please-manifest.json not found!"
exit 1
fi

echo "Current working directory: $(pwd)"

## Read and process lerna.json using jq to get the package version
PACKAGE_VERSION=$(jq -r '.version' $LERNA_JSON)
PACKAGE_VERSION=$(jq -r '."packages/web"' $RELEASE_PLEASE_MANIFEST)

echo "PACKAGE_VERSION: $PACKAGE_VERSION"
echo "CDN_BUCKET: $CDN_BUCKET"
Expand Down

0 comments on commit e65bb27

Please sign in to comment.