Reset version on CI

Jeremy Tuloup 5 years ago
parent 8f82032036
commit 160c310016

@ -34,6 +34,14 @@ jobs:
run: |
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
- name: Reset version
run: |
# TODO: improve this with a mock package?
# This step is to ensure the workflow always starts with a final version
sed -i -E "s/VersionInfo\(.*\)/VersionInfo\(9, 8, 7, 'final', 0\)/" jupyterlab_classic/_version.py
sed -i -E "s/current_version = .*/current_version = 9, 8, 7, 'final', 0/" .bumpversion.cfg
jlpm run lerna version 9.8.7 --no-push --force-publish --no-git-tag-version --yes
git commit -am "Release 9.8.7"
- name: Patch Release
run: |
jlpm release:patch --force

@ -1,7 +1,6 @@
import { getPythonVersion, run } from '@jupyterlab/buildutils';
export function postbump(): void {
// Commit the changes
const newPyVersion = getPythonVersion();
// Commit changes.
run(`git commit -am "Release ${newPyVersion}"`);

Loading…
Cancel
Save