Skip to content

Commit 3a5b154

Browse files
authored
Update to the Jupyter Releaser v2 (#46)
* Move releaser hooks to `pyptoject.toml` * Update `check-release` action * Fix python specifier
1 parent 1b4083e commit 3a5b154

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

.github/workflows/check-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
run: |
5353
pip install .
5454
- name: Check Release
55-
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v1
55+
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v2
5656
with:
5757
token: ${{ secrets.GITHUB_TOKEN }}
5858

package.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,5 @@
9090
"jupyterlab": {
9191
"extension": true,
9292
"outputDir": "jupyterlab_filesystem_access/labextension"
93-
},
94-
"jupyter-releaser": {
95-
"hooks": {
96-
"before-build-npm": [
97-
"python -m pip install jupyterlab~=3.3",
98-
"jlpm"
99-
],
100-
"before-build-python": [
101-
"jlpm clean:all"
102-
]
103-
}
10493
}
10594
}

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,11 @@ npm = ["jlpm"]
1515

1616
[tool.check-manifest]
1717
ignore = ["jupyterlab_filesystem_access/labextension/**", "yarn.lock", ".*", "package-lock.json"]
18+
19+
[tool.jupyter-releaser.hooks]
20+
before-build-npm = [
21+
"python -m pip install jupyterlab~=3.1",
22+
"jlpm",
23+
"jlpm run build:prod",
24+
]
25+
before-build-python = ["jlpm clean:all"]

0 commit comments

Comments
 (0)