Skip to content

Commit

Permalink
chore: fix TypeScipt publish release workflow (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
platosha authored Mar 30, 2022
1 parent aba1332 commit 885b835
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/bump/exec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ alias ghr="curl https://api.github.com/repos/$REPO/branches/$branch/protection \
-s"

# Updating the registration version for all packages
find "$packages_dir"/*/src/index.ts -exec sed -i "s/version:.\+\$/version: \/* updated-by-script *\/ \'$VERSION_TAG\',/m" {} +
find "$packages_dir"/*/src/index.ts -exec sed -i'' -e "s/version:.\+\,/version: \/* updated-by-script *\/ \'$VERSION_TAG\',/" {} +

npx lerna version "$VERSION_TAG" --no-git-tag-version --no-push --yes

# Updating the peer dependencies in packages
find "$packages_dir"/*/package.json -exec node "$bump_scripts_dir"/package-update.js -v "$VERSION_TAG" {} +

# Updating package-lock.json to reflect results of the previous command
npx lerna clean --yes
npm run bootstrap

git add --all
Expand Down

0 comments on commit 885b835

Please sign in to comment.