Skip to content

Commit f36a331

Browse files
authored
Merge pull request #213 from krassowski/docs/release_scripts
Update release instructions
2 parents a46f3a8 + f9db5a6 commit f36a331

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

docs/Releasing.ipynb

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,30 @@
3131
"- `azure-pipelines.yml`\n",
3232
"- `CHANGELOG.md`\n",
3333
"\n",
34-
"The npm version must be updated in the following places\n",
34+
"The npm version of `jupyterlab-lsp` must be updated in the following places:\n",
3535
"\n",
3636
"- `packages/jupyterlab-lsp/package.json` (canonical)\n",
3737
"- `azure-pipelines.yml`\n",
3838
"- `packages/metapackage/package.json`\n",
39-
"- `CHANGELOG.md`"
39+
"- `CHANGELOG.md`\n",
40+
"\n",
41+
"The npm version of `lsp-ws-connection` must be updated in the following places:\n",
42+
"\n",
43+
"- `packages/lsp-ws-connection/package.json` (canonical)\n",
44+
"- `packages/jupyterlab-lsp/package.json`\n",
45+
"- `CHANGELOG.md`\n",
46+
"\n",
47+
"### Releasing:\n",
48+
"\n",
49+
"```bash\n",
50+
"cd packages/lsp-ws-connection\n",
51+
"npm publish\n",
52+
"cd -\n",
53+
"cd packages/jupyterlab-lsp\n",
54+
"npm publish\n",
55+
"cd -\n",
56+
"./scripts/publish_pypi.sh\n",
57+
"```"
4058
]
4159
}
4260
],
@@ -56,7 +74,7 @@
5674
"name": "python",
5775
"nbconvert_exporter": "python",
5876
"pygments_lexer": "ipython3",
59-
"version": "3.7.6"
77+
"version": "3.8.0"
6078
}
6179
},
6280
"nbformat": 4,

scripts/publish_pypi.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
rm dist/*
2+
python3 setup.py sdist
3+
twine upload dist/* -r testpypi
4+
echo "Published to testpypi"
5+
while true; do
6+
read -p "Do you wish to publish to pypi?" yn
7+
case $yn in
8+
[Yy]* ) twine upload dist/*; break;;
9+
[Nn]* ) exit;;
10+
* ) echo "Please answer yes or no.";;
11+
esac
12+
done

0 commit comments

Comments
 (0)