-
Notifications
You must be signed in to change notification settings - Fork 33
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
Update publish to NPM script #96
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
two small comments (you should be able to run this locally without actually publishing to verify the difference between npm version ${1-patch}
and npm version patch
)
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "@paypal/common-components", | |||
"version": "1.0.45", | |||
"version": "1.0.46", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this version change won't cause a problem but might be good to back it out anyway
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When running the npm publish github action off main I got this error: https://github.com/paypal/paypal-common-components/actions/runs/8853608567/job/24314849632
Will merging this PR, resolve that without manually bumping the version?
@@ -1,4 +1,22 @@ | |||
#!/bin/sh | |||
|
|||
# Running `npm version` will run through the other version lifecycle scripts | |||
npm version ${1-patch}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what did ${1-patch}
do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the npm publish github action to release an alpha branch of the package if its not run off the repos main branch.