Skip to content

Commit 1caa69d

Browse files
authored
Merge pull request #1 from Typeform/semantic-release
Add semantic release
2 parents f31fe17 + da6df94 commit 1caa69d

File tree

4 files changed

+550
-24
lines changed

4 files changed

+550
-24
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules
22
dist
33
lib
44
.npmrc
5+
yarn-error.log

.travis.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
language: node_js
2+
3+
node_js:
4+
- "9"
5+
6+
branches:
7+
only:
8+
- master
9+
10+
cache:
11+
directories:
12+
- node_modules
13+
14+
notifications:
15+
email: false
16+
17+
env:
18+
VERSION: "$TRAVIS_BUILD_NUMBER"
19+
20+
before_install:
21+
- yarn
22+
23+
script:
24+
- TYPEFORM_TOKEN=${TYPEFORM_TOKEN} yarn test
25+
26+
after_success:
27+
- yarn semantic-release
28+

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"repository": {
1111
"type": "git",
12-
"url": "git+https://github.com/jepser/typeform-js-sdk.git"
12+
"url": "git+https://github.com/Typeform/js-api-client.git"
1313
},
1414
"keywords": [
1515
"sdk",
@@ -19,9 +19,9 @@
1919
"author": "Jepser Bernardino",
2020
"license": "MIT",
2121
"bugs": {
22-
"url": "https://github.com/jepser/typeform-js-sdk/issues"
22+
"url": "https://github.com/Typeform/js-api-client/issues"
2323
},
24-
"homepage": "https://github.com/jepser/typeform-js-sdk#readme",
24+
"homepage": "https://github.com/Typeform/js-api-clientk#readme",
2525
"dependencies": {
2626
"axios": "^0.18.0",
2727
"in-publish": "^2.0.0"
@@ -46,6 +46,7 @@
4646
"jest": "^22.4.3",
4747
"lint-staged": "^7.0.4",
4848
"prettier": "^1.12.1",
49+
"semantic-release": "^15.1.7",
4950
"sinon": "^4.5.0",
5051
"webpack": "^4.6.0",
5152
"webpack-cli": "^2.0.14"
@@ -66,7 +67,8 @@
6667
"build:dist": "webpack --mode production",
6768
"build:lib": "NODE_ENV=production babel src --out-dir lib",
6869
"prepublish": "in-publish && npm run build:dist && npm run build:lib || not-in-publish",
69-
"pretty": "prettier './{src,tests}/**/*.js' --write"
70+
"pretty": "prettier './{src,tests}/**/*.js' --write",
71+
"semantic-release": "semantic-release"
7072
},
7173
"peerDependencies": {}
7274
}

0 commit comments

Comments
 (0)