Skip to content

Commit

Permalink
Merge pull request #1 from Typeform/semantic-release
Browse files Browse the repository at this point in the history
Add semantic release
  • Loading branch information
jepser authored Apr 24, 2018
2 parents f31fe17 + da6df94 commit 1caa69d
Show file tree
Hide file tree
Showing 4 changed files with 550 additions and 24 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
dist
lib
.npmrc
yarn-error.log
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
language: node_js

node_js:
- "9"

branches:
only:
- master

cache:
directories:
- node_modules

notifications:
email: false

env:
VERSION: "$TRAVIS_BUILD_NUMBER"

before_install:
- yarn

script:
- TYPEFORM_TOKEN=${TYPEFORM_TOKEN} yarn test

after_success:
- yarn semantic-release

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/jepser/typeform-js-sdk.git"
"url": "git+https://github.com/Typeform/js-api-client.git"
},
"keywords": [
"sdk",
Expand All @@ -19,9 +19,9 @@
"author": "Jepser Bernardino",
"license": "MIT",
"bugs": {
"url": "https://github.com/jepser/typeform-js-sdk/issues"
"url": "https://github.com/Typeform/js-api-client/issues"
},
"homepage": "https://github.com/jepser/typeform-js-sdk#readme",
"homepage": "https://github.com/Typeform/js-api-clientk#readme",
"dependencies": {
"axios": "^0.18.0",
"in-publish": "^2.0.0"
Expand All @@ -46,6 +46,7 @@
"jest": "^22.4.3",
"lint-staged": "^7.0.4",
"prettier": "^1.12.1",
"semantic-release": "^15.1.7",
"sinon": "^4.5.0",
"webpack": "^4.6.0",
"webpack-cli": "^2.0.14"
Expand All @@ -66,7 +67,8 @@
"build:dist": "webpack --mode production",
"build:lib": "NODE_ENV=production babel src --out-dir lib",
"prepublish": "in-publish && npm run build:dist && npm run build:lib || not-in-publish",
"pretty": "prettier './{src,tests}/**/*.js' --write"
"pretty": "prettier './{src,tests}/**/*.js' --write",
"semantic-release": "semantic-release"
},
"peerDependencies": {}
}
Loading

0 comments on commit 1caa69d

Please sign in to comment.