Skip to content

Commit d019d6b

Browse files
authored
Add script to build npm tarballs (#37)
* add script to build npm tarballs * upload npm packages in extension-artifacts * build npm dists on CI * fix * reorder
1 parent a963b51 commit d019d6b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/build.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ jobs:
4040
4141
jupyter labextension list 2>&1 | grep -ie "jupyter-iframe-commands.*OK"
4242
43+
- name: Build the npm packages
44+
run: |
45+
set -eux
46+
47+
jlpm build:npm:dist
48+
4349
- name: Package the extension
4450
run: |
4551
set -eux
@@ -52,7 +58,7 @@ jobs:
5258
uses: actions/upload-artifact@v4
5359
with:
5460
name: extension-artifacts
55-
path: dist/jupyter_iframe_commands*
61+
path: dist/*
5662
if-no-files-found: error
5763

5864
test_isolated:

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"scripts": {
2222
"build": "lerna run build",
2323
"build:prod": "lerna run build:prod",
24+
"build:npm:dist": "jlpm build:prod && mkdir -p dist && lerna exec --no-private -- npm pack --pack-destination ../../dist",
2425
"clean": "lerna run clean",
2526
"clean:all": "lerna run clean:all",
2627
"eslint": "jlpm eslint:check --fix",

0 commit comments

Comments
 (0)