Skip to content

Commit 0b1963d

Browse files
committed
feat(semantic-release): added semantic release to repository
1 parent ec2d8ad commit 0b1963d

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

.travis.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1+
language: node_js
12
cache:
23
directories:
34
- "node_modules"
4-
language: node_js
5+
notifications:
6+
email: false
57
node_js:
68
- 'node'
79
script:
810
- npx jest --coverage
9-
- npx danger ci
11+
- npx danger ci
12+
13+
after_success:
14+
- npm run travis-deploy-once "npm run semantic-release"
15+
branches:
16+
except:
17+
- /^v\d+\.\d+\.\d+$/

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@staffbase/plugins-client-sdk",
3-
"version": "0.3.2",
3+
"version": "0.0.0-semantic-release",
44
"description": "Staffbase plugins client SDK for JavaScript",
55
"main": "dist/plugins-client-sdk.js",
66
"module": "dist/plugins-client-sdk.esm.js",
@@ -14,11 +14,13 @@
1414
"lint": "npm run lint-code && npm run lint-size",
1515
"lint-code": "npx eslint src test",
1616
"lint-size": "npx size-limit",
17-
"fix": "eslint --fix 'src/**/*.js' 'test/**/*.js'"
17+
"fix": "eslint --fix 'src/**/*.js' 'test/**/*.js'",
18+
"travis-deploy-once": "travis-deploy-once",
19+
"semantic-release": "semantic-release"
1820
},
1921
"repository": {
2022
"type": "git",
21-
"url": "git+https://github.com/Staffbase/plugins-client-sdk.git"
23+
"url": "https://github.com/Staffbase/plugins-client-sdk.git"
2224
},
2325
"keywords": [
2426
"staffbase",
@@ -85,6 +87,8 @@
8587
"rollup-plugin-node-resolve": "^3.3.0",
8688
"rollup-plugin-strip-logger": "0.4.1",
8789
"rollup-plugin-uglify": "4.0.0",
88-
"size-limit": "^0.19.2"
90+
"size-limit": "^0.19.2",
91+
"travis-deploy-once": "^5.0.4",
92+
"semantic-release": "^15.9.12"
8993
}
9094
}

0 commit comments

Comments
 (0)