Skip to content

Commit ff2d033

Browse files
authored
fix(release): fix npm publishing (#670)
1 parent 5ccc7c1 commit ff2d033

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ reports
77
desktop.ini
88
npm-debug.log
99
yarn-debug.log
10+
npm-error.log
11+
yarn-error.log
1012
.npmrc
1113
Thumbs.db
1214
.idea

conf/cut_release.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,12 @@ push_new_release() {
186186
# Check untracked files
187187
check_untracked_files || return 1
188188

189+
# Build npm assets
190+
if ! build_assets; then
191+
printf "${red}Failed building npm assets!${end}"
192+
return 1
193+
fi
194+
189195
# Publish to npm
190196
if ! push_to_npm; then
191197
printf "${red}Failed pushing to npm!${end}"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"build:dev:es": "BABEL_ENV=dev NODE_ENV=dev yarn build:es --copy-files --source-maps inline --watch --ignore \"**/__tests__/**\",\"src/components/messages.js\"",
4444
"build:es": "babel src --out-dir lib",
4545
"build:i18n": "props2es",
46-
"build:npm": "npm-run-all build:prod:npm build:prod:es",
46+
"build:npm": "npm-run-all clean build:i18n build:prod:npm build:prod:es",
4747
"build:prod:es": "BABEL_ENV=production NODE_ENV=production yarn build:es --ignore \"**/__tests__/**\"",
4848
"build:prod:dist": "NODE_ENV=production webpack --config conf/webpack.config.js --mode production",
4949
"build:prod:examples": "LANGUAGE=en-US REACT=true NODE_ENV=production node --max_old_space_size=8192 node_modules/react-styleguidist/bin/styleguidist.js build --config conf/styleguide.config.js --mode production",

0 commit comments

Comments
 (0)