mirror of
https://github.com/jupyter/notebook.git
synced 2024-11-27 03:20:27 +08:00
Add CI workflow to test the release scripts
This commit is contained in:
parent
c6f1f79450
commit
a9c26b59b8
41
.github/workflows/buildutils.yml
vendored
Normal file
41
.github/workflows/buildutils.yml
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
name: Build Utilities
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: '*'
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: bash -l {0}
|
||||
|
||||
jobs:
|
||||
scripts:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Install node
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '14.x'
|
||||
- name: Install Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.9'
|
||||
architecture: 'x64'
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install -U jupyterlab~=3.0 jupyter_packaging~=0.7.9 pip
|
||||
jlpm
|
||||
jlpm run build
|
||||
- name: Patch Release
|
||||
run: |
|
||||
jlpm release:patch --force
|
||||
- name: Minor Release
|
||||
run: |
|
||||
jlpm release:bump minor --force
|
||||
- name: Major Release
|
||||
run: |
|
||||
jlpm release:bump major --force
|
@ -21,7 +21,6 @@
|
||||
"build": "lerna run build",
|
||||
"build:prod": "lerna run build:prod",
|
||||
"build:test": "lerna run build:test",
|
||||
"bumpversion": "node ./node_modules/@jupyterlab/buildutils/lib/bumpversion.js",
|
||||
"clean": "lerna run clean",
|
||||
"eslint": "eslint . --ext .ts,.tsx --fix",
|
||||
"eslint:check": "eslint . --ext .ts,.tsx",
|
||||
@ -29,6 +28,7 @@
|
||||
"prettier": "prettier --write \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
|
||||
"prettier:check": "prettier --list-different \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
|
||||
"publish": "yarn run clean && yarn run build && lerna publish",
|
||||
"release:bump": "node ./buildutils/lib/release-bump.js",
|
||||
"release:patch": "node ./buildutils/lib/release-patch.js",
|
||||
"test": "lerna run test",
|
||||
"update:dependency": "node ./node_modules/@jupyterlab/buildutils/lib/update-dependency.js --lerna"
|
||||
|
Loading…
Reference in New Issue
Block a user