Skip to content

Commit

Permalink
bump all project versions in bump-version (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlqqq authored Mar 5, 2023
1 parent 8099263 commit 5351f1b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .jupyter-releaser.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ before-build-python = [
]

[options]
version-cmd = "npx -p lerna -y lerna version --no-git-tag-version --no-push -y"
version-cmd = "../../scripts/bump-version.sh"
python_packages = [
"packages/jupyter-ai:jupyter-ai",
"packages/jupyter-ai-dalle:jupyter-ai-dalle"
Expand Down
16 changes: 16 additions & 0 deletions scripts/bump-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# script that bumps version for all projects regardless of whether they were
# changed since last release. needed because `lerna version` only bumps versions for projects
# listed by `lerna changed` by default.
#
# see: https://github.com/lerna/lerna/issues/2369

for package in ../*; do
touch $package/TEMP
git add $package/TEMP
done

(npx -p lerna -y lerna version --no-git-tag-version --no-push -y $1) || exit 1

for package in ../*; do
git rm -f $package/TEMP
done

0 comments on commit 5351f1b

Please sign in to comment.