Skip to content

Commit 3e9ae96

Browse files
committed
Update deploy script
1 parent fd2a2ce commit 3e9ae96

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

scripts/deploy.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
#!/bin/bash
22

3-
# Assumptions:
4-
#
5-
# 1. NPM token is configured in ~/.npmrc
6-
# 2. PyPI user and token is configured in ~/.pypirc
7-
# 3. Anaconda token is configured in ~/.tokens/anaconda
8-
93
set -e
104
set -x
115

@@ -16,10 +10,12 @@ then
1610
fi
1711

1812
git clean -dfx
19-
npm publish --access public
13+
npm install
14+
npm publish --access public # token is configured in ~/.npmrc; requires OTP
2015

2116
git clean -dfx
22-
python setup.py build_js sdist upload
17+
python setup.py build_js sdist
18+
twine upload -u __token__ -p $(cat ~/.tokens/pypi_jupyter_bokeh) dist/jupyter_bokeh-*.tar.gz
2319

2420
git clean -dfx
2521
conda build conda.recipe

0 commit comments

Comments
 (0)