Skip to content

Commit cfe1b82

Browse files
authored
Update Rebranded Card Glyph Name (#128)
1 parent 217db29 commit cfe1b82

4 files changed

Lines changed: 15 additions & 9 deletions

File tree

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {
@@ -15,10 +15,9 @@
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",

scripts/prerelease.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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'
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ current_sha=$(git rev-parse --short HEAD)
1313

1414
if [ "$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
1918
else
20-
export tag
21-
npm run standard-version -- --release-as patch
19+
npm run standard-version -- --release-as patch
2220
fi
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

src/logos/card/glyphRebrand/logo.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

7373
export function GlyphCardRebrandInlineSVG({

0 commit comments

Comments
 (0)