Skip to content

Commit ff67bec

Browse files
authored
Merge pull request #408 from martinRenou/fix_release_ci
Try fixing the automatic release job
2 parents a1a577f + e22b875 commit ff67bec

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,15 @@ jobs:
1010

1111
- uses: actions/checkout@v2
1212

13-
- name: Install node
14-
uses: actions/setup-node@v1
13+
- name: Setup conda
14+
uses: conda-incubator/setup-miniconda@v2
1515
with:
16-
node-version: '14.x'
17-
registry-url: 'https://registry.npmjs.org'
18-
19-
- name: Install Python
20-
uses: actions/setup-python@v2
21-
with:
22-
python-version: '3.x'
16+
mamba-version: "*"
17+
channels: conda-forge
2318

2419
- name: Install dependencies
2520
run: |
26-
python -m pip install --upgrade pip
21+
mamba install -c conda-forge python=3.9 jupyterlab yarn matplotlib ipywidgets jupyter-packaging=0.7
2722
pip install twine wheel build
2823
2924
- name: Publish the Python package
@@ -36,9 +31,8 @@ jobs:
3631
3732
- name: Publish the NPM package
3833
run: |
39-
echo $PRE_RELEASE
40-
if [[ $PRE_RELEASE == "true" ]]; then export TAG="next"; else export TAG="latest"; fi
41-
npm publish --tag ${TAG} --access public
34+
yarn install && yarn run build
35+
npm publish
4236
env:
4337
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4438
PRE_RELEASE: ${{ github.event.release.prerelease }}

0 commit comments

Comments
 (0)