-
Notifications
You must be signed in to change notification settings - Fork 62
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
ci: add deprecate workflow #846
Conversation
942b3a6
to
c422e88
Compare
c422e88
to
176a9ef
Compare
0d52c50
to
b678d29
Compare
DEPRECATION_MESSAGE=$1 | ||
SEARCH_FOR_RELEASE_STARTING_FROM=$2 | ||
USE_NPM_REGISTRY=$3 |
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.
Are these the arguments to yarn trigger-deprecate-release
script?
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.
Yes
package.json
Outdated
"verify-dependency-licenses-extract": "yarn extract-dependency-licenses && ./scripts/verify-dependency-licenses.sh" | ||
"verify-dependency-licenses-extract": "yarn extract-dependency-licenses && ./scripts/verify-dependency-licenses.sh", | ||
"deprecate": "ts-node scripts/deprecate_release.ts", | ||
"postinstall": "echo 'export default [' > scripts/components/private_packages.ts && grep -l packages/*/package.json -e '\"private\": \"\\?true\"\\?' | xargs cat | jq .name | tr -s '\\n' ',' >> scripts/components/private_packages.ts && echo '];' >> scripts/components/private_packages.ts" |
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.
Is it possible to move this to its own script file? This feels too complex to live in-line on package.json file.
Description of changes
Copy workflow from aws-amplify/amplify-category-api#2532
Description of how you validated changes
Dry run in personal account.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.