chore(build): semantic-release configuration
MODIFY
.travis.yml
.travis.yml
language: node_js
+
cache:
directories:
- node_modules
+
node_js:
- "6"
+
dist: trusty
addons:
@@ -11,6 +14,7 @@ addons:
packages:
- google-chrome-stable
firefox: "latest-esr"
+
before_install:
- if [[ -n "${AAT_TOKEN}" ]]; then sed -e "s|\${AAT_TOKEN}|$AAT_TOKEN|g" < .aat.yml.src > .aat.yml; fi
- tar -xjf /tmp/firefox-latest-esr.tar.bz2 --directory /tmp
@@ -18,6 +22,7 @@ before_install:
- export CHROME_BIN=google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
+
install:
- npm prune
- npm install || (cat npm-debug.log; false)
@@ -29,3 +34,10 @@ script:
- find tests/spec -name "*.js" ! -name left-nav_spec.js -print0 | xargs -0 -n 1 -P 1 npm run test:unit -- -d -f
- if [[ -n "${AAT_TOKEN}" ]]; then (npm run test:a11y || true); fi
- npm run lint
+
+after_success:
+ - npm run semantic-release
+
+branches:
+ except:
+ - /^v\d+\.\d+\.\d+$/
\ No newline at end of file

MODIFY
package.json
package.json
"module": "es/index.js",
"main": "umd/index.js",
"repository": {
- "type": "git"
+ "type": "git",
+ "url": "https://github.com/carbon-design-system/carbon-components.git"
},
"bugs": {
"url": "https://github.com/carbon-design-system/carbon-components/issues"
"rollup-plugin-node-resolve": "^2.0.0",
"rollup-plugin-uglify": "^1.0.1",
"scss-to-json": "1.1.0",
+ "semantic-release": "^6.3.2",
"sinon": "1.17.3",
"sinon-chai": "2.8.0",
"svgxuse": "1.1.22",
"validate-commit-msg": "^2.8.2",
"vinyl-named": "^1.1.0",
- "webpack": "^2.0.0",
- "semantic-release": "^6.3.2"
+ "webpack": "^2.0.0"
},
"files": [
"css/**/*",

chore(build): semantic-release configuration