diff --git a/.github/promote.sh b/.github/promote.sh index 4684c0fa6a6..95fbe3a214a 100755 --- a/.github/promote.sh +++ b/.github/promote.sh @@ -12,11 +12,11 @@ echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc # Update their versions and changelogs according to angular commit guidelines # https://github.com/angular/angular/blob/master/CONTRIBUTING.md#commit -# if [[ ! -z "${PATTERNFLY_VERSION}" ]]; then -# echo "Updating to @patternfly/patternfly: ${PATTERNFLY_VERSION}" -# npm pkg set dependencies.@patternfly/patternfly=${PATTERNFLY_VERSION} --workspace @patternfly/react-docs -# npm pkg set devDependencies.@patternfly/patternfly=${PATTERNFLY_VERSION} --workspace @patternfly/react-core --workspace @patternfly/react-styles --workspace @patternfly/react-tokens --workspace @patternfly/react-icons -# fi +if [[ ! -z "${PATTERNFLY_VERSION}" ]]; then + echo "Updating to @patternfly/patternfly: ${PATTERNFLY_VERSION}" + npm pkg set dependencies.@patternfly/patternfly=${PATTERNFLY_VERSION} --workspace @patternfly/react-docs + npm pkg set devDependencies.@patternfly/patternfly=${PATTERNFLY_VERSION} --workspace @patternfly/react-core --workspace @patternfly/react-styles --workspace @patternfly/react-tokens --workspace @patternfly/react-icons +fi # publish to npm yarn run lerna publish --conventional-commits --conventional-graduate --no-private --dist-tag=latest --yes