Skip to content

Commit 45d595f

Browse files
authored
Update check-release workflow (#1292)
* Update check-release workflow * Run jlpm before anything * Bump version: Run jlpm first * Skip check-wheel-contents * Ignore duplicated files complaint
1 parent eab947e commit 45d595f

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/check-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
pip install .
3030
3131
- name: Check Release
32-
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v1
32+
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v2
3333
with:
3434
token: ${{ secrets.GITHUB_TOKEN }}
3535
version_spec: next

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ before-bump-version = [
142142
]
143143
before-build-npm = [
144144
"python -m pip install jupyterlab~=3.0",
145+
"jlpm",
145146
"jlpm clean",
146147
"jlpm build:prod",
147148
]
@@ -152,3 +153,6 @@ after-draft-release = "bash ./scripts/reset-stable.sh"
152153

153154
[tool.jupyter-releaser.options]
154155
version-cmd = "python scripts/bump-version.py --force"
156+
157+
[tool.check-wheel-contents]
158+
ignore = ["W002"]

scripts/bump-version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def patch(force=False):
2020
run("hatch version patch", quiet=True)
2121

2222
# Version the changed
23-
cmd = "jlpm run lerna version patch --no-push --force-publish --no-git-tag-version"
23+
cmd = "jlpm && jlpm run lerna version patch --no-push --force-publish --no-git-tag-version"
2424
if force:
2525
cmd += " --yes"
2626
run(cmd)
@@ -69,7 +69,7 @@ def update(spec, force=False):
6969
if lerna_version == "preminor":
7070
lerna_version += " --preid=alpha"
7171

72-
cmd = f"jlpm run lerna version --force-publish --no-push --no-git-tag-version {lerna_version}"
72+
cmd = f"jlpm && jlpm run lerna version --force-publish --no-push --no-git-tag-version {lerna_version}"
7373
if force:
7474
cmd += " --yes"
7575

0 commit comments

Comments
 (0)