Skip to content

Commit 43f3158

Browse files
authored
Merge pull request #9 from codenights/chore-semantic-release
Semantic release
2 parents 61a2cbd + 7ce99b5 commit 43f3158

File tree

3 files changed

+1892
-67
lines changed

3 files changed

+1892
-67
lines changed

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,15 @@ jobs:
6161
- curl https://mix-it-client.herokuapp.com
6262
- lerna --scope mix-it-client run test:e2e -- --headless --url https://mix-it-client-staging.herokuapp.com
6363

64-
# Déploiement en prod
64+
# Release
65+
- stage: release
66+
if: branch = master
67+
deploy:
68+
provider: script
69+
script: yarn release
70+
skip_cleanup: true
71+
72+
# Déploiement en prod
6573
- stage: Deploy front to production
6674
if: tag =~ ^v
6775
env:

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"build": "lerna --scope ${PACKAGES_DIR} run build -- --dest ../../dist",
1111
"test": "lerna run test",
1212
"test:client": "lerna run test --scope mix-it-client",
13-
"test:front": "lerna run test --scope mix-it-front"
13+
"test:front": "lerna run test --scope mix-it-front",
14+
"release": "semantic-release"
1415
},
1516
"devDependencies": {
1617
"@types/convict": "^4.2.1",
@@ -41,13 +42,18 @@
4142
"prettier": "2.0.2",
4243
"sass-loader": "^8.0.0",
4344
"typescript": "~3.8.3",
44-
"vue-template-compiler": "^2.6.10"
45+
"vue-template-compiler": "^2.6.10",
46+
"semantic-release": "^17.1.1"
4547
},
4648
"lint-staged": {
4749
"**/*.{js,ts,tsx,css,md}": "prettier --write"
4850
},
4951
"dependencies": {
5052
"mix-it-client": "file:packages/mix-it-client",
5153
"mix-it-front": "file:packages/mix-it-front"
54+
},
55+
"repository": {
56+
"type": "git",
57+
"url": "https://github.com/codenights/mix-it.git"
5258
}
5359
}

0 commit comments

Comments
 (0)