Skip to content

fix: Add quotes around message to fix npm deprecate command #652

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

Merged
merged 1 commit into from
Apr 22, 2025

Conversation

limhjgrace
Copy link
Contributor

The current NPM deprecate workflow does not format the deprecating message correctly and so, only recognizes the first word of the message. For example: https://www.npmjs.com/package/aws-rum-web/v/1.22.0.

This PR will add quotes around the message so that the full message is included. Tested in forked repo that the npm deprecate command is formatted correctly: https://github.com/limhjgrace/aws-rum-web/actions/runs/14543965537/job/40806747504

Command now correctly wraps message in quotes:

npm deprecate [email protected] "Testing deprecate command fix"

Workflow failed due to NPM token issues. Manually ran the command above and verified it worked: https://www.npmjs.com/package/aws-rum-web-experimental/v/1.9.0-alpha.1


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@williazz williazz self-requested a review April 22, 2025 05:52
Copy link
Contributor

@williazz williazz left a comment

Choose a reason for hiding this comment

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

ship it!

@limhjgrace limhjgrace merged commit 8d8cf2f into aws-observability:main Apr 22, 2025
3 checks passed
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.

2 participants