From 7a25feb636b31ffdafbdc84d2270a19afa00084b Mon Sep 17 00:00:00 2001 From: Donald Labaj Date: Tue, 27 Aug 2024 15:33:16 -0400 Subject: [PATCH] chore: Update promote.sh to promote to npm. Update github action to promote to npm. --- .github/promote.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/promote.sh b/.github/promote.sh index 4c790c09bc2..95fbe3a214a 100755 --- a/.github/promote.sh +++ b/.github/promote.sh @@ -12,19 +12,19 @@ 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 +yarn run lerna publish --conventional-commits --conventional-graduate --no-private --dist-tag=latest --yes # immediately after promote - set up repo for next prerelease # yarn run lerna version preminor --force-publish --conventional-commits --no-private --yes --preid prerelease # dry run -yarn run lerna version --conventional-commits --conventional-graduate --no-private --yes --no-git-tag-version --no-push +# yarn run lerna version --conventional-commits --conventional-graduate --no-private --yes --no-git-tag-version --no-push