File tree Expand file tree Collapse file tree
src/logos/card/glyphRebrand Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @paypal/sdk-logos" ,
3- "version" : " 2.2.16 " ,
3+ "version" : " 2.3.0 " ,
44 "description" : " JSX/SVG logos for PayPal." ,
55 "main" : " index.js" ,
66 "scripts" : {
1515 "format:check" : " prettier --check ." ,
1616 "test" : " npm run format:check && npm run lint && npm run flow && npm run karma" ,
1717 "build" : " npm run test && npm run babel && npm run webpack" ,
18- "prerelease" : " npm run clean && npm run build && git add dist && git commit -m 'ci: check in dist folder' || echo 'Nothing to distribute' " ,
19- "release" : " ./scripts/publish .sh" ,
18+ "prerelease" : " ./scripts/prerelease.sh " ,
19+ "release" : " ./scripts/release .sh" ,
2020 "standard-version" : " standard-version" ,
21- "postrelease" : " git push && git push --follow-tags && npm publish" ,
2221 "clean" : " rimraf dist coverage" ,
2322 "reinstall" : " rimraf flow-typed && rimraf node_modules && npm install && flow-typed install" ,
2423 "debug" : " cross-env NODE_ENV=debug" ,
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ # Preversion script - runs before npm version bump
4+ # Cleans, builds, and commits the dist folder
5+
6+ npm run clean && npm run build && git add dist && git commit -m ' ci: check in dist folder' || echo ' Nothing to distribute'
Original file line number Diff line number Diff line change @@ -13,10 +13,11 @@ current_sha=$(git rev-parse --short HEAD)
1313
1414if [ " $current_branch " != " $default_branch " ]; then
1515 bump=' prerelease'
16- tag=" alpha-$current_sha "
17- export tag
16+ tag=" alpha"
1817 npm run standard-version -- --prerelease $tag --release-as patch
1918else
20- export tag
21- npm run standard-version -- --release-as patch
19+ npm run standard-version -- --release-as patch
2220fi
21+
22+ # Git push and npm publish (in same script, so $tag is available)
23+ git push && git push --follow-tags && npm publish --tag $tag
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export function GlyphCardRebrandExternalImage({
6767 logoColor
6868 ) ;
6969
70- return < SVGLogo { ...props } name = { LOGO . CARD } cdnUrl = { cdnUrl} / > ;
70+ return < SVGLogo { ...props } name = { LOGO . CARD_REBRAND } cdnUrl = { cdnUrl} / > ;
7171}
7272
7373export function GlyphCardRebrandInlineSVG ( {
You can’t perform that action at this time.
0 commit comments