Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new task to verify if package was published correctly to npm. #965

Merged
merged 7 commits into from
Jul 5, 2024

Conversation

martnpaneq
Copy link
Contributor

@martnpaneq martnpaneq commented Jul 4, 2024

Suggested merge commit message (convention)

Feature (release-tools): Added a new task to verify if packages were published correctly to npm. See ckeditor/ckeditor5#16625.


Additional information

For example – encountered issues, assumptions you had to make, other affected tickets, etc.

@coveralls
Copy link

Coverage Status

coverage: 90.678% (+0.05%) from 90.624%
when pulling cd65e99 on ck/16625-upload-error-409-fix
into e0cccdf on master.

@coveralls
Copy link

Coverage Status

coverage: 90.678% (+0.05%) from 90.624%
when pulling 5c1f640 on ck/16625-upload-error-409-fix
into e0cccdf on master.

Copy link
Member

@pomek pomek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@pomek pomek merged commit 73016ca into master Jul 5, 2024
2 checks passed
@pomek pomek deleted the ck/16625-upload-error-409-fix branch July 5, 2024 11:54
const packageJson = await fs.readJson( upath.join( packageToVerify, 'package.json' ) );

try {
await checkVersionAvailability( version, packageJson.name );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checkVersionAvailability() returns a promise that resolves to true if the provided version does not exist or resolves the promise to false otherwise.

We should check the returned value here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants