Remove release-npm script (#210)

* Remove release-npm script

* Remove the npm publish check on CI
Jeremy Tuloup 5 years ago committed by GitHub
parent 9e534b81be
commit 17c1792c8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -75,9 +75,3 @@ jobs:
python -m pip install -U jupyterlab~=3.0 jupyter_packaging~=0.10 pip
jlpm
jlpm run build
- name: Publish to npm in dry-run mode
run: |
mkdir dist
jlpm lerna exec -- npm pack
cp packages/*/*.tgz dist
jlpm release:npm --dist ./dist --dry-run

@ -1,29 +0,0 @@
import { readdirSync } from 'fs';
import { resolve } from 'path';
import { run } from '@jupyterlab/buildutils';
import commander from 'commander';
commander
.description('Publish packages to npm')
.option(
'--dist <path>',
'The path to the directory with the package tarballs'
)
.option('--dry-run', 'Run in dry-run mode')
.action((options: any) => {
const dryRun = options.dryRun ?? false;
const distDir = resolve(options.dist);
const files = readdirSync(distDir);
files.forEach(file => {
if (!file.endsWith('.tgz')) {
return;
}
const tarball = resolve(distDir, file);
run(`npm publish ${tarball} ${dryRun ? '--dry-run' : ''}`);
});
});
commander.parse(process.argv);

@ -32,7 +32,6 @@
"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:npm": "node ./buildutils/lib/release-npm.js",
"release:patch": "node ./buildutils/lib/release-patch.js",
"start": "jupyter retro --config ./app/test/jupyter_server_config.py --no-browser",
"test": "lerna run test",

Loading…
Cancel
Save