Skip to content
This repository was archived by the owner on Feb 3, 2023. It is now read-only.

Commit 074f275

Browse files
committed
Add CD script
1 parent 60e04a8 commit 074f275

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish Package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Install node
13+
uses: actions/setup-node@v1
14+
with:
15+
node-version: "12.x"
16+
registry-url: "https://registry.npmjs.org"
17+
- name: Install Python
18+
uses: actions/setup-python@v1
19+
with:
20+
python-version: "3.x"
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install jupyterlab~=2.0
25+
- name: Build and publish NPM package
26+
run: |
27+
npm install
28+
npm publish
29+
env:
30+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)