Skip to content

Commit e82f2d3

Browse files
authored
Merge pull request #2 from mareklibra/publish_orchestrator
Fix reading current_version_common_package
2 parents d7e2d35 + b01e389 commit e82f2d3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

publish_orchestrator.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,18 @@ sudo npm install -g yarn
4747
cd backstage-plugins
4848
yarn --prefer-offline --frozen-lockfile
4949

50+
cd plugins/orchestrator-common
51+
current_version_common_package=$(node -p "require('./package.json').version")
52+
cd -
53+
echo "current_version_common_package= $current_version_common_package"
54+
5055
# Update package version
5156
for folder in "plugins/orchestrator-common" "plugins/orchestrator" "plugins/orchestrator-backend"; do
5257
echo "Update version of $folder"
5358
cd "$folder"
54-
current_version_common_package=$(node -p "require('./package.json').version")
5559
yarn version --new-version "$VERSION" --no-git-tag-version
5660
sed -i 's/"@janus-idp\/backstage-plugin-orchestrator-common": "'"$current_version_common_package"'"/"@janus-idp\/backstage-plugin-orchestrator-common": "'"$VERSION"'"/g' package.json
61+
git diff ./package.json
5762
cd -
5863
done
5964

0 commit comments

Comments
 (0)