cicd: added stage for publication
This commit is contained in:
parent
dac639ffec
commit
d30c20e638
@ -3,6 +3,7 @@ image: node:11
|
|||||||
stages:
|
stages:
|
||||||
- integration
|
- integration
|
||||||
- acceptance
|
- acceptance
|
||||||
|
- release
|
||||||
- deployment
|
- deployment
|
||||||
|
|
||||||
## TESTING ##
|
## TESTING ##
|
||||||
@ -94,6 +95,18 @@ stg2:
|
|||||||
tags:
|
tags:
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
|
## RELEASE TAGGING ##
|
||||||
|
|
||||||
|
publish:
|
||||||
|
stage: release
|
||||||
|
script:
|
||||||
|
- npm install -g semantic-release@v17 @semantic-release/gitlab
|
||||||
|
- semantic-release
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
tags:
|
||||||
|
- deploy
|
||||||
|
|
||||||
## LIVE DEPLOYMENTS ##
|
## LIVE DEPLOYMENTS ##
|
||||||
|
|
||||||
alpha:
|
alpha:
|
||||||
|
33
package.json
33
package.json
@ -2,6 +2,10 @@
|
|||||||
"name": "sib-app",
|
"name": "sib-app",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.startinblox.com/applications/sib-app.git"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "run-p copy:* build:*",
|
"build": "run-p copy:* build:*",
|
||||||
"build:css": "node-sass src/styles/index.scss -o dist/styles/",
|
"build:css": "node-sass src/styles/index.scss -o dist/styles/",
|
||||||
@ -15,6 +19,35 @@
|
|||||||
"watch:js": "babel --watch \"src/scripts/*.js\" -o dist/scripts/index.js",
|
"watch:js": "babel --watch \"src/scripts/*.js\" -o dist/scripts/index.js",
|
||||||
"watch:pug": "pug --watch src/index.pug -o dist/ --obj config.json"
|
"watch:pug": "pug --watch src/index.pug -o dist/ --obj config.json"
|
||||||
},
|
},
|
||||||
|
"release": {
|
||||||
|
"branches": [
|
||||||
|
"master"
|
||||||
|
],
|
||||||
|
"plugins": [
|
||||||
|
[
|
||||||
|
"@semantic-release/commit-analyzer",
|
||||||
|
{
|
||||||
|
"preset": "angular",
|
||||||
|
"releaseRules": [
|
||||||
|
{
|
||||||
|
"type": "major",
|
||||||
|
"release": "major"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minor",
|
||||||
|
"release": "minor"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "*",
|
||||||
|
"release": "patch"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"@semantic-release/release-notes-generator",
|
||||||
|
"@semantic-release/gitlab"
|
||||||
|
]
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/cli": "^7.7.0",
|
"@babel/cli": "^7.7.0",
|
||||||
"@babel/core": "^7.7.0",
|
"@babel/core": "^7.7.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user