Skip to content

Commit f34de09

Browse files
authored
Back to the releaser setup (#355)
* Releaser setup * Iterate * Fix branch name * Rename * Iterate
1 parent bdf2801 commit f34de09

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

.github/workflows/check-release.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Check Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
check_release:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
20+
- name: Base Setup
21+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
22+
23+
- name: Check Release
24+
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v2
25+
with:
26+
token: ${{ secrets.GITHUB_TOKEN }}
27+
version_spec: next
28+
29+
- name: Upload Distributions
30+
uses: actions/upload-artifact@v2
31+
with:
32+
name: ipycanvas-releaser-dist-${{ github.run_number }}
33+
path: .jupyter_releaser_checkout/dist

pyproject.toml

+17
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,20 @@ src = "ipycanvas/_version.py"
102102
[[tool.tbump.file]]
103103
src = "package.json"
104104
version_template = "\"version\": \"{major}.{minor}.{patch}{channel}{release}\""
105+
106+
[tool.jupyter-releaser.hooks]
107+
before-bump-version = [
108+
"python -m pip install hatch jupyterlab~=4.0",
109+
]
110+
before-build-npm = [
111+
"python -m pip install jupyterlab~=4.0",
112+
"jlpm",
113+
"jlpm clean",
114+
"jlpm build",
115+
]
116+
before-build-python = [
117+
"jlpm clean",
118+
]
119+
120+
[tool.check-wheel-contents]
121+
ignore = ["W002"]

0 commit comments

Comments
 (0)