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

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: ...@@ -13,7 +13,7 @@ branches:
cache: cache:
directories: directories:
- node_modules - $HOME/.npm
env: env:
global: global:
...@@ -47,43 +47,40 @@ script: ...@@ -47,43 +47,40 @@ script:
jobs: jobs:
include: include:
- stage: tests - stage: test
node_js: 4 node_js: '4'
env: DIALECT=sqlite COVERAGE=true env: DIALECT=sqlite COVERAGE=true
- stage: tests - stage: test
node_js: 4 node_js: '4'
sudo: required sudo: required
env: MYSQL_VER=mysql-57 DIALECT=mysql COVERAGE=true env: MYSQL_VER=mysql-57 DIALECT=mysql COVERAGE=true
- stage: tests - stage: test
node_js: 4 node_js: '4'
sudo: required sudo: required
env: POSTGRES_VER=postgres-95 DIALECT=postgres COVERAGE=true env: POSTGRES_VER=postgres-95 DIALECT=postgres COVERAGE=true
- stage: tests - stage: test
node_js: 4 node_js: '4'
sudo: required sudo: required
env: POSTGRES_VER=postgres-95 DIALECT=postgres-native COVERAGE=true env: POSTGRES_VER=postgres-95 DIALECT=postgres-native COVERAGE=true
- stage: tests - stage: test
node_js: 8 node_js: '8'
env: DIALECT=sqlite env: DIALECT=sqlite
- stage: tests - stage: test
node_js: 6 node_js: '6'
env: DIALECT=sqlite env: DIALECT=sqlite
- stage: docs - stage: release
node_js: 6 node_js: '8'
script: script:
- 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ]; then npm run docs; fi' - npm run semantic-release
before_deploy:
- npm run docs
deploy: deploy:
provider: surge provider: surge
project: ./esdoc/ project: ./esdoc/
domain: docs.sequelizejs.com domain: docs.sequelizejs.com
skip_cleanup: true skip_cleanup: true
on:
branch: master stages:
- stage: release - test
node_js: 8 - name: release
env: BUILD_LEADER_ID=8 if: branch = master AND type = push AND fork = false
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
...@@ -79,6 +79,7 @@ ...@@ -79,6 +79,7 @@
"pg-native": "^1.10.0", "pg-native": "^1.10.0",
"pg-types": "^1.11.0", "pg-types": "^1.11.0",
"rimraf": "^2.5.4", "rimraf": "^2.5.4",
"semantic-release": "^11.0.0",
"sinon": "^4.1.2", "sinon": "^4.1.2",
"sinon-chai": "^2.14.0", "sinon-chai": "^2.14.0",
"sqlite3": "^3.1.13", "sqlite3": "^3.1.13",
...@@ -138,7 +139,8 @@ ...@@ -138,7 +139,8 @@
"sscce-mysql": "cross-env DIALECT=mysql npm run sscce", "sscce-mysql": "cross-env DIALECT=mysql npm run sscce",
"sscce-postgres": "cross-env DIALECT=postgres npm run sscce", "sscce-postgres": "cross-env DIALECT=postgres npm run sscce",
"sscce-sqlite": "cross-env DIALECT=sqlite 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": { "engines": {
"node": ">=4.0.0" "node": ">=4.0.0"
...@@ -147,19 +149,12 @@ ...@@ -147,19 +149,12 @@
"config": { "config": {
"commitizen": { "commitizen": {
"path": "./node_modules/cz-conventional-changelog" "path": "./node_modules/cz-conventional-changelog"
},
"commitTypeMap": {
"docs": null,
"fix": "patch",
"perf": "patch",
"feat": "minor",
"refactor": null,
"release": "minor",
"ci": null,
"tests": null
} }
}, },
"release": { "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!