Skip to content

Commit 4893204

Browse files
committed
Fix publishing script
1 parent fd4b13d commit 4893204

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,4 @@ share/python-wheels/
4545
*.egg
4646
MANIFEST
4747
tsconfig.tsbuildinfo
48+
npm-tmp/

bin/publish.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
#!/usr/bin/env bash
22

3+
set -euxo pipefail
4+
5+
TMP_DIR=npm-tmp
6+
37
source bin/pre-publish-check.sh
4-
cd $LABEXTENSION_PATH
5-
npm publish --access public
6-
cd $SERVEREXTENSION_PATH
8+
mkdir -p $TMP_DIR
9+
pushd $TMP_DIR
10+
npm pack ../
11+
npm publish ryantam626-jupyterlab_code_formatter-"${PUBLISH_VERSION/v/}".tgz --access public
12+
popd
713
python setup.py sdist
814
twine upload dist/jupyterlab_code_formatter-"${PUBLISH_VERSION/v/}".tar.gz
915
git tag -a "${PUBLISH_VERSION}" -m "${PUBLISH_VERSION}"

0 commit comments

Comments
 (0)