@ckeditor/ckeditor5-dev-release-tools 45.0.3 → 45.0.5

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.
@@ -62,7 +62,7 @@ export default async function publishPackages( options ) {
62
62
  requireEntryPoint = false,
63
63
  optionalEntryPointPackages = [],
64
64
  cwd = process.cwd(),
65
- concurrency = 4,
65
+ concurrency = 2,
66
66
  attempts = 3
67
67
  } = options;
68
68
 
@@ -107,8 +107,12 @@ export default async function publishPackages( options ) {
107
107
  throw new Error( 'Some packages could not be published.' );
108
108
  }
109
109
 
110
+ listrTask.output = 'Let\'s give an npm a moment for taking a breath (~10 sec)...';
111
+
110
112
  // Let's give an npm a moment for taking a breath...
111
- await wait( 1000 );
113
+ await wait( 1000 * 10 );
114
+
115
+ listrTask.output = 'Done. Let\'s continue.';
112
116
 
113
117
  // ...and try again.
114
118
  return publishPackages( {
@@ -15,7 +15,7 @@ import pacote from 'pacote';
15
15
  * @returns {Promise}
16
16
  */
17
17
  export default async function checkVersionAvailability( version, packageName ) {
18
- return pacote.manifest( `${ packageName }@${ version }`, { cache: null } )
18
+ return pacote.manifest( `${ packageName }@${ version }`, { cache: null, preferOnline: true } )
19
19
  .then( () => {
20
20
  // If `pacote.manifest` resolves, a package with the given version exists.
21
21
  return false;
@@ -165,7 +165,8 @@ function getPackagesGroupedByThreads( packages, concurrency ) {
165
165
  /**
166
166
  * @typedef {object} ListrTaskObject
167
167
  *
168
- * @see https://listr2.kilic.dev/api/classes/ListrTaskObject.html
168
+ * @see https://listr2.kilic.dev/task/title.html
169
+ * @see https://listr2.kilic.dev/task/output.html
169
170
  *
170
171
  * @property {string} title Title of the task.
171
172
  *
@@ -15,7 +15,7 @@ import pacote from 'pacote';
15
15
  * @returns {Promise.<boolean>}
16
16
  */
17
17
  export default async function isVersionPublishableForTag( packageName, version, npmTag ) {
18
- const npmVersion = await pacote.manifest( `${ packageName }@${ npmTag }`, { cache: null } )
18
+ const npmVersion = await pacote.manifest( `${ packageName }@${ npmTag }`, { cache: null, preferOnline: true } )
19
19
  .then( ( { version } ) => version )
20
20
  // An `npmTag` does not exist, or it's a first release of a package.
21
21
  .catch( () => null );
@@ -18,7 +18,7 @@ export default async function publishPackageOnNpmCallback( packagePath, taskOpti
18
18
  await tools.shExec( `npm publish --access=public --tag ${ taskOptions.npmTag }`, {
19
19
  cwd: packagePath,
20
20
  async: true,
21
- verbosity: 'error'
21
+ verbosity: 'silent'
22
22
  } );
23
23
 
24
24
  // Do nothing if `npm publish` says "OK". We cannot trust anything npm says.
@@ -38,7 +38,7 @@ export function getLastFromChangelog( cwd = process.cwd() ) {
38
38
  export function getLastPreRelease( releaseIdentifier, cwd = process.cwd() ) {
39
39
  const packageName = getPackageJson( cwd ).name;
40
40
 
41
- return pacote.packument( packageName, { cache: null } )
41
+ return pacote.packument( packageName, { cache: null, preferOnline: true } )
42
42
  .then( result => {
43
43
  const lastVersion = Object.keys( result.versions )
44
44
  .filter( version => version.startsWith( releaseIdentifier ) )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-dev-release-tools",
3
- "version": "45.0.3",
3
+ "version": "45.0.5",
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": "^45.0.3",
25
+ "@ckeditor/ckeditor5-dev-utils": "^45.0.5",
26
26
  "@octokit/rest": "^21.0.0",
27
27
  "chalk": "^5.0.0",
28
28
  "cli-columns": "^4.0.0",