-
Notifications
You must be signed in to change notification settings - Fork 6
/
publish.js
executable file
·34 lines (28 loc) · 968 Bytes
/
publish.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env node
/**
* @license Copyright (c) 2020-2022, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
/* eslint-env node */
'use strict';
const rootPackageJson = require( '../../package.json' );
// This scripts publish changes.
//
// You can test the whole process using `dry-run` mode. It won't change anything in the project
// and any repository. Nothing will be pushed. Instead of `npm publish`, the `npm pack` command will be called.
//
// Note: This task based on versions published on NPM and GitHub. If something went wrong, you can call this script one more time.
//
// This task should be executed after: `yarn run release:bump-version`.
//
// Use:
// yarn run release:publish --dry-run
require( '@ckeditor/ckeditor5-dev-env' )
.releaseSubRepositories( {
cwd: process.cwd(),
packages: 'packages',
skipNpmPublish: [
rootPackageJson.name
],
dryRun: process.argv.includes( '--dry-run' )
} );