Skip to content

Commit 8972dac

Browse files
authored
Merge pull request #13 from pranamphd/improve-publish-wildcard
chore(cd): improve publish release wildcard related to --tag
2 parents 9b5669c + 2150afb commit 8972dac

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/ts-cd.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)