Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ skip = ["check-links"]
before-bump-version = ["python -m pip install bump2version jupyterlab~=3.0"]
before-build-npm = ["python -m pip install jupyterlab~=3.0", "jlpm clean", "jlpm build:prod"]
before-build-python = ["jlpm clean"]
after-draft-release = "bash ./scripts/reset-stable.sh"

[tool.jupyter-releaser.options]
version-cmd = "python scripts/bump-version.py --force"
Expand Down
9 changes: 9 additions & 0 deletions scripts/reset-stable.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
set -eux

git checkout stable || git checkout -b stable
git reset --hard origin/main

# Update the stable branch to point the latest release
if [[ ${RH_DRY_RUN:=true} != 'true' ]]; then
git push origin stable -f
fi