@@ -12,6 +12,10 @@ permissions:
12
12
jobs :
13
13
check_for_lab_updates :
14
14
runs-on : macos-latest
15
+ defaults :
16
+ run :
17
+ # needed for conda to work
18
+ shell : bash -el {0}
15
19
16
20
steps :
17
21
- uses : actions/checkout@v4
@@ -29,11 +33,25 @@ jobs:
29
33
run : |
30
34
python -m pip install tbump
31
35
36
+ - name : ' Get latest JupyterLab version'
37
+ uses : actions/github-script@v7
38
+ id : get-latest-jupyterlab-version
39
+ with :
40
+ github-token : ${{ secrets.JLAB_APP_TOKEN }}
41
+ script : |
42
+ const releases = await github.rest.repos.listReleases({
43
+ owner: "jupyterlab",
44
+ repo: "jupyterlab"
45
+ })
46
+ const latestRelease = releases.data.find(release => release.tag_name.startsWith('v') && !(release.draft || release.prerelease))
47
+ return latestRelease ? latestRelease.tag_name.substring(1) : ''
48
+ result-encoding : string
49
+
32
50
- name : Check for new releases
33
51
shell : bash
34
52
run : |
35
53
set -eux
36
- export LATEST=$(python scripts/get_latest_lab_version.py)
54
+ export LATEST=${{ steps.get-latest-jupyterlab-version.outputs.result }}
37
55
echo "latest=${LATEST}" >> $GITHUB_ENV
38
56
tbump --only-patch ${LATEST}-1 --non-interactive
39
57
if [[ ! -z "$(git status --porcelain package.json)" ]]; then
@@ -44,17 +62,21 @@ jobs:
44
62
if : env.update_available == 'true'
45
63
uses : actions/setup-node@v4
46
64
with :
47
- node-version : ' 14 .x'
65
+ node-version : ' 20 .x'
48
66
49
67
- name : Install npm dependencies
50
68
if : env.update_available == 'true'
51
69
run : |
52
70
npm install --global yarn
53
71
yarn install
54
72
55
- - name : Install conda
73
+ - uses : conda-incubator/setup-miniconda@v3
56
74
if : env.update_available == 'true'
57
- uses : s-weigand/setup-conda@v1
75
+ with :
76
+ auto-update-conda : true
77
+ auto-activate-base : true
78
+ activate-environment : " "
79
+ channels : conda-forge
58
80
59
81
- name : Install conda dependencies
60
82
if : env.update_available == 'true'
67
89
- name : Update binary sign list osx-64
68
90
if : env.update_available == 'true'
69
91
run : |
70
- yarn clean_env_installer && conda-lock install --prefix ./env_installer/jlab_server ./env_installer/conda-osx-64.lock
92
+ yarn clean_env_installer && conda-lock install --no-validate-platform -- prefix ./env_installer/jlab_server ./env_installer/conda-osx-64.lock
71
93
yarn update_binary_sign_list --platform osx-64
72
94
73
95
- name : Update binary sign list osx-arm64
0 commit comments