Skip to content

Commit 175ef6d

Browse files
committed
fix: correct auto release (fixes #97)
1 parent 38e30f5 commit 175ef6d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
language: node_js
22
node_js:
3+
- node
34
- 8
45
before_install:
56
- npm config set depth 0
6-
- npm install --global npm@latest
77
notifications:
88
email: false
99
sudo: false
@@ -12,4 +12,6 @@ script:
1212
- npm run lint
1313
- npm run build
1414
after_success:
15-
- rm -fr ./dist && npm run build && semantic-release pre && npm publish && semantic-release post
15+
- export NODE_ENV=production
16+
- npm run build
17+
- semantic-release

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
},
5656
"scripts": {
5757
"add-assertions": "babel-node ./src/bin/readme-assertions",
58-
"build": "NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps",
58+
"build": "rm -fr ./dist && NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps",
5959
"create-readme": "gitdown ./.README/README.md --output-file ./README.md && npm run add-assertions",
6060
"lint": "eslint ./src ./test",
6161
"test": "mocha --recursive --compilers js:@babel/register"

0 commit comments

Comments
 (0)