@@ -154,11 +154,11 @@ jobs:
154154 set -euo pipefail
155155 PKG_VERSION=$(node -p "require('./package.json').version")
156156
157- if [[ "${PKG_VERSION}" == *"-alpha. "* ]]; then
157+ if [[ "${PKG_VERSION}" == *"-alpha"* ]]; then
158158 npm publish --access public --tag alpha --dry-run
159- elif [[ "${PKG_VERSION}" == *"-beta. "* ]]; then
159+ elif [[ "${PKG_VERSION}" == *"-beta"* ]]; then
160160 npm publish --access public --tag beta --dry-run
161- elif [[ "${PKG_VERSION}" == *"-rc. "* ]]; then
161+ elif [[ "${PKG_VERSION}" == *"-rc"* ]]; then
162162 npm publish --access public --tag next --dry-run
163163 else
164164 npm publish --access public --dry-run
@@ -172,11 +172,11 @@ jobs:
172172 set -euo pipefail
173173 PKG_VERSION=$(node -p "require('./package.json').version")
174174
175- if [[ "${PKG_VERSION}" == *"-alpha. "* ]]; then
175+ if [[ "${PKG_VERSION}" == *"-alpha"* ]]; then
176176 npm publish --access public --tag alpha
177- elif [[ "${PKG_VERSION}" == *"-beta. "* ]]; then
177+ elif [[ "${PKG_VERSION}" == *"-beta"* ]]; then
178178 npm publish --access public --tag beta
179- elif [[ "${PKG_VERSION}" == *"-rc. "* ]]; then
179+ elif [[ "${PKG_VERSION}" == *"-rc"* ]]; then
180180 npm publish --access public --tag next
181181 else
182182 npm publish --access public
0 commit comments