Skip to content

Commit a931091

Browse files
authored
fix: add build:copy-files after standard version has run (#777)
1 parent d121709 commit a931091

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

ci-scripts/publish-rc.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ npm run std-version -- --prerelease rc --no-verify
99

1010
git push --follow-tags "https://$GH_TOKEN@github.com/$TRAVIS_REPO_SLUG" "$TRAVIS_BRANCH" > /dev/null 2>&1;
1111

12+
npm run build:copy-files
13+
1214
npm publish lib --tag prerelease

ci-scripts/publish.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ echo "$std_ver"
1515

1616
git push --follow-tags "https://$GH_TOKEN@github.com/$TRAVIS_REPO_SLUG" master > /dev/null 2>&1;
1717

18+
npm run build:copy-files
19+
1820
npm publish lib
1921

2022
# run this after publish to make sure GitHub finishes updating from the push

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
"build:lint:fix": "npm run build:lint -- --fix",
1919
"build:lint": "eslint 'src/**' --ext .js,.jsx --env browser,node",
2020
"build:cjs": "cross-env NODE_ENV=production BABEL_ENV=cjs babel src --out-dir lib --ignore \"src/**/*.spec.js\",\"src/**/*.test.js\",\"src/**/*.Component.js\",\"src/_playground/*\",\"src/**/*.stories.js\"",
21-
"build": "npm run build:index && rm -rf lib && npm run build:cjs && npm run build:copy-files",
21+
"build": "npm run build:index && rm -rf lib && npm run build:cjs",
2222
"config:lint": "eslint 'config/**' --ext .js,.jsx --env browser,node",
2323
"deploy": "gh-pages -d build",
2424
"devtools:lint": "eslint 'devtools/**' --ext .js,.jsx --env browser,node",
2525
"docs:dev": "FUNDAMENTAL_REACT_PLAYGROUND=true npm start",
26-
"dry-run": "npm run build && npm publish lib --dry-run",
26+
"dry-run": "npm run build && npm run build:copy-files && npm publish lib --dry-run",
2727
"lint:fix": "npm run build:lint:fix && npm run scripts:lint:fix && npm run config:lint:fix",
2828
"lint:pre-commit": "printf \"running pre-commit lint...\" && npm run lint && printf \"done!\n\"",
2929
"lint": "npm run build:lint && npm run scripts:lint && npm run config:lint && npm run devtools:lint && npm run style:lint",

0 commit comments

Comments
 (0)