不要怂,就是干,撸起袖子干!

Commit a23d9604 by Felix Becker Committed by Sushant

ci(release): update to semantic-release v11 (#8709)

1 parent ae9abbbe
Showing with 31 additions and 38 deletions
package-lock=false
......@@ -13,7 +13,7 @@ branches:
cache:
directories:
- node_modules
- $HOME/.npm
env:
global:
......@@ -47,43 +47,40 @@ script:
jobs:
include:
- stage: tests
node_js: 4
- stage: test
node_js: '4'
env: DIALECT=sqlite COVERAGE=true
- stage: tests
node_js: 4
- stage: test
node_js: '4'
sudo: required
env: MYSQL_VER=mysql-57 DIALECT=mysql COVERAGE=true
- stage: tests
node_js: 4
- stage: test
node_js: '4'
sudo: required
env: POSTGRES_VER=postgres-95 DIALECT=postgres COVERAGE=true
- stage: tests
node_js: 4
- stage: test
node_js: '4'
sudo: required
env: POSTGRES_VER=postgres-95 DIALECT=postgres-native COVERAGE=true
- stage: tests
node_js: 8
- stage: test
node_js: '8'
env: DIALECT=sqlite
- stage: tests
node_js: 6
- stage: test
node_js: '6'
env: DIALECT=sqlite
- stage: docs
node_js: 6
- stage: release
node_js: '8'
script:
- 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ]; then npm run docs; fi'
- npm run semantic-release
before_deploy:
- npm run docs
deploy:
provider: surge
project: ./esdoc/
domain: docs.sequelizejs.com
skip_cleanup: true
on:
branch: master
- stage: release
node_js: 8
env: BUILD_LEADER_ID=8
script:
- npm install --no-save --no-package-lock semantic-release@8 @bubltechnology/customizable-commit-analyzer@1.0.2-0
- npm run lint
after_success:
- ./node_modules/.bin/semantic-release pre && npm publish && ./node_modules/.bin/semantic-release post
stages:
- test
- name: release
if: branch = master AND type = push AND fork = false
......@@ -79,6 +79,7 @@
"pg-native": "^1.10.0",
"pg-types": "^1.11.0",
"rimraf": "^2.5.4",
"semantic-release": "^11.0.0",
"sinon": "^4.1.2",
"sinon-chai": "^2.14.0",
"sqlite3": "^3.1.13",
......@@ -138,7 +139,8 @@
"sscce-mysql": "cross-env DIALECT=mysql npm run sscce",
"sscce-postgres": "cross-env DIALECT=postgres npm run sscce",
"sscce-sqlite": "cross-env DIALECT=sqlite npm run sscce",
"commitmsg": "validate-commit-msg"
"commitmsg": "validate-commit-msg",
"semantic-release": "semantic-release"
},
"engines": {
"node": ">=4.0.0"
......@@ -147,19 +149,12 @@
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
},
"commitTypeMap": {
"docs": null,
"fix": "patch",
"perf": "patch",
"feat": "minor",
"refactor": null,
"release": "minor",
"ci": null,
"tests": null
}
},
"release": {
"analyzeCommits": "@bubltechnology/customizable-commit-analyzer"
"verifyConditions": [
"@semantic-release/npm",
"@semantic-release/github"
]
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!