Skip to content

Commit

Permalink
fix(dev-tools): switch to use lerna publish from-package
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Apr 25, 2024
1 parent cb77e32 commit faf976c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions modules/dev-tools/CHANGELOG.md
@@ -1,5 +1,9 @@
# CHANGELOG (ocular-dev-tools)

## v2.0.0-alpha.32

- fix(dev-tools): switch to use lerna publish from-package

## v2.0.0-alpha.30

- feat(dev-tools): add new modes to ocular-publish (#461)
Expand Down
6 changes: 3 additions & 3 deletions modules/dev-tools/scripts/publish.sh
Expand Up @@ -34,9 +34,9 @@ publishToNPM() {
if [ -d "modules" ]; then
if [ -z $tag ]; then
# use default tag ('latest' or publishConfig.tag in package.json)
(set -x; npx lerna publish from-git --force-publish --no-commit-hooks)
(set -x; npx lerna publish from-package --force-publish --no-commit-hooks)
else
(set -x; npx lerna publish from-git --force-publish --dist-tag $tag --no-commit-hooks)
(set -x; npx lerna publish from-package --force-publish --dist-tag $tag --no-commit-hooks)
fi
else
if [ -z $tag ]; then
Expand Down Expand Up @@ -79,7 +79,7 @@ case $MODE in

"from-git")
# publish from existing tag
gitTag=$(git describe)
gitTag=$(git describe --tags)
if [[ $gitTag == *"-"* ]]; then
publishToNPM ${2:-beta}
else
Expand Down

0 comments on commit faf976c

Please sign in to comment.