Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: drop support for -rc puplishing (#37556)

Yury Semikhatsky2b2554ba9b35
diff --git a/.github/workflows/publish_release_npm.yml b/.github/workflows/publish_release_npm.yml
index 8aa10c5710..479bdbab2c 100644
--- a/.github/workflows/publish_release_npm.yml
+++ b/.github/workflows/publish_release_npm.yml
@@ -23,11 +23,6 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- - run: utils/publish_all_packages.sh --release-candidate
- if: ${{ github.event.release.prerelease }}
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: utils/publish_all_packages.sh --release
- if: ${{ !github.event.release.prerelease }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
diff --git a/utils/publish_all_packages.sh b/utils/publish_all_packages.sh
index 23e4d3eca1..c2d19becff 100755
--- a/utils/publish_all_packages.sh
+++ b/utils/publish_all_packages.sh
@@ -15,19 +15,18 @@ trap "cleanup; cd $(pwd -P)" EXIT
cd "$(dirname $0)"
if [[ $1 == "--help" ]]; then
- echo "usage: $(basename $0) [--release|--release-candidate|--alpha|--beta]"
+ echo "usage: $(basename $0) [--release|--alpha|--beta]"
echo
echo "Publishes all packages."
echo
echo "--release publish @latest version of all packages"
- echo "--release-candidate publish @rc version of all packages"
echo "--alpha publish @next version of all packages"
echo "--beta publish @beta version of all packages"
exit 1
fi
if [[ $# < 1 ]]; then
- echo "Please specify either --release, --beta or --alpha or --release-candidate"
+ echo "Please specify either --release, --beta or --alpha"
exit 1
fi
@@ -54,33 +53,22 @@ if [[ "$1" == "--release" ]]; then
fi
# Ensure package version does not contain dash.
if [[ "${VERSION}" == *-* ]]; then
- echo "ERROR: cannot publish pre-release version with --release flag"
+ echo "ERROR: cannot publish pre-release version ${VERSION} with --release flag"
exit 1
fi
NPM_PUBLISH_TAG="latest"
-elif [[ "$1" == "--release-candidate" ]]; then
- if [[ -n $(git status -s) ]]; then
- echo "ERROR: git status is dirty; some uncommitted changes or untracked files"
- exit 1
- fi
- # Ensure package version is properly formatted.
- if [[ "${VERSION}" != *-rc* ]]; then
- echo "ERROR: release candidate version must have a dash"
- exit 1
- fi
- NPM_PUBLISH_TAG="rc"
elif [[ "$1" == "--alpha" ]]; then
- # Ensure package version contains alpha and does not contain rc
- if [[ "${VERSION}" != *-alpha* || "${VERSION}" == *-rc* ]]; then
- echo "ERROR: cannot publish release version with --alpha flag"
+ # Ensure package version contains alpha.
+ if [[ "${VERSION}" != *-alpha* ]]; then
+ echo "ERROR: cannot publish release version ${VERSION} with --alpha flag"
exit 1
fi
NPM_PUBLISH_TAG="next"
elif [[ "$1" == "--beta" ]]; then
- # Ensure package version contains dash.
- if [[ "${VERSION}" != *-beta* || "${VERSION}" == *-rc* ]]; then
- echo "ERROR: cannot publish release version with --beta flag"
+ # Ensure package version contains beta.
+ if [[ "${VERSION}" != *-beta* ]]; then
+ echo "ERROR: cannot publish release version ${VERSION} with --beta flag"
exit 1
fi