Skip to content

Commit f0e65b3

Browse files
authored
Update publish.sh
1 parent b48e069 commit f0e65b3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/publish.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if [[ "$BRANCH" =~ ^feature\/.*$ ]]; then
2525
git config --global user.email "[email protected]"
2626
git config --global user.name "scalecube ci"
2727
git tag -a v$VERSION -m "[skip ci]"
28-
yarn lerna publish --loglevel debug --force-publish --no-git-tag-version --no-commit-hooks --canary --dist-tag snapshot --preid $ID --yes
28+
yarn lerna publish --loglevel debug --force-publish --no-git-tag-version --no-commit-hooks --canary --dist-tag snapshot --pre-dist-tag snapshot --preid $ID --yes
2929

3030
if [[ "$?" == 0 ]]; then
3131
echo $MSG_PUBLISH_SUCCESS
@@ -45,12 +45,14 @@ elif [[ "$BRANCH" == "develop" ]] && [[ "$IS_PULL_REQUEST" == "false" ]]; then
4545
ID="develop.$(date +%s)"
4646
VERSION=$(jq -r .version lerna.json)
4747
git fetch --tags
48+
git tag -a v$VERSION -m "[skip ci]"
4849

49-
yarn lerna publish --loglevel debug --force-publish --no-git-tag-version --no-commit-hooks --canary --dist-tag snapshot --preid $ID --yes
50+
#yarn lerna publish --loglevel debug --force-publish --no-git-tag-version --no-commit-hooks --canary --dist-tag develop --pre-dist-tag develop --preid $ID --yes
51+
yarn lerna publish prerelease --force-publish --preid $ID --pre-dist-tag develop --yes
5052

5153
if [[ "$?" == 0 ]]; then
5254
echo $MSG_PUBLISH_SUCCESS
53-
bash ./verify.sh $ID
55+
bash scripts/./verify.sh $ID.0
5456
else
5557
echo $MSG_PUBLISH_FAIL
5658
fi

0 commit comments

Comments
 (0)