@ckeditor/ckeditor5-dev-release-tools 53.3.0 → 53.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/tasks/reassignnpmtags.js +10 -2
- package/package.json +2 -2
|
@@ -23,9 +23,17 @@ const execPromise = util.promisify( exec );
|
|
|
23
23
|
* @param {string} options.npmOwner User that is authorized to release packages.
|
|
24
24
|
* @param {string} options.version Specifies the version of packages to reassign the tags for.
|
|
25
25
|
* @param {Array.<string>} options.packages Array of packages' names to reassign tags for.
|
|
26
|
+
* @param {string} [options.npmTag='latest'] Npm dist-tag to assign.
|
|
26
27
|
* @returns {Promise}
|
|
27
28
|
*/
|
|
28
|
-
export default async function reassignNpmTags(
|
|
29
|
+
export default async function reassignNpmTags( options ) {
|
|
30
|
+
const {
|
|
31
|
+
npmOwner,
|
|
32
|
+
version,
|
|
33
|
+
packages,
|
|
34
|
+
npmTag = 'latest'
|
|
35
|
+
} = options;
|
|
36
|
+
|
|
29
37
|
const errors = [];
|
|
30
38
|
const packagesSkipped = [];
|
|
31
39
|
const packagesUpdated = [];
|
|
@@ -36,7 +44,7 @@ export default async function reassignNpmTags( { npmOwner, version, packages } )
|
|
|
36
44
|
counter.start();
|
|
37
45
|
|
|
38
46
|
const updateTagPromises = packages.map( async packageName => {
|
|
39
|
-
const command = `npm dist-tag add ${ shellEscape( [ packageName ] ) }@${ shellEscape( [ version ] ) }
|
|
47
|
+
const command = `npm dist-tag add ${ shellEscape( [ packageName ] ) }@${ shellEscape( [ version ] ) } ${ npmTag }`;
|
|
40
48
|
const updateLatestTagRetryable = retry( () => execPromise( command ) );
|
|
41
49
|
await updateLatestTagRetryable()
|
|
42
50
|
.then( response => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-dev-release-tools",
|
|
3
|
-
"version": "53.3.
|
|
3
|
+
"version": "53.3.1",
|
|
4
4
|
"description": "Tools used for releasing CKEditor 5 and related packages.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"lib"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@ckeditor/ckeditor5-dev-utils": "^53.3.
|
|
25
|
+
"@ckeditor/ckeditor5-dev-utils": "^53.3.1",
|
|
26
26
|
"@octokit/rest": "^22.0.0",
|
|
27
27
|
"chalk": "^5.0.0",
|
|
28
28
|
"cli-columns": "^4.0.0",
|