@ckeditor/ckeditor5-dev-release-tools 45.0.1 → 45.0.3
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.
|
@@ -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 }
|
|
18
|
+
return pacote.manifest( `${ packageName }@${ version }`, { cache: null } )
|
|
19
19
|
.then( () => {
|
|
20
20
|
// If `pacote.manifest` resolves, a package with the given version exists.
|
|
21
21
|
return false;
|
|
@@ -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 }
|
|
18
|
+
const npmVersion = await pacote.manifest( `${ packageName }@${ npmTag }`, { cache: null } )
|
|
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 );
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
export default async function publishPackageOnNpmCallback( packagePath, taskOptions ) {
|
|
15
15
|
const { tools } = await import( '@ckeditor/ckeditor5-dev-utils' );
|
|
16
|
-
const { default: fs } = await import( 'fs-extra' );
|
|
17
16
|
|
|
18
17
|
try {
|
|
19
18
|
await tools.shExec( `npm publish --access=public --tag ${ taskOptions.npmTag }`, {
|
|
@@ -22,7 +21,7 @@ export default async function publishPackageOnNpmCallback( packagePath, taskOpti
|
|
|
22
21
|
verbosity: 'error'
|
|
23
22
|
} );
|
|
24
23
|
|
|
25
|
-
|
|
24
|
+
// Do nothing if `npm publish` says "OK". We cannot trust anything npm says.
|
|
26
25
|
} catch {
|
|
27
26
|
// Do nothing if an error occurs. A parent task will handle it.
|
|
28
27
|
}
|
package/lib/utils/versions.js
CHANGED
|
@@ -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 )
|
|
41
|
+
return pacote.packument( packageName, { cache: null } )
|
|
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
|
+
"version": "45.0.3",
|
|
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.
|
|
25
|
+
"@ckeditor/ckeditor5-dev-utils": "^45.0.3",
|
|
26
26
|
"@octokit/rest": "^21.0.0",
|
|
27
27
|
"chalk": "^5.0.0",
|
|
28
28
|
"cli-columns": "^4.0.0",
|