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

Commit 300ee615 by Sushant

build: setup publish config for v5

1 parent 2b9baa2a
Showing with 19 additions and 8 deletions
...@@ -6,6 +6,7 @@ language: node_js ...@@ -6,6 +6,7 @@ language: node_js
branches: branches:
only: only:
- master - master
- v5
- /^greenkeeper/.*$/ - /^greenkeeper/.*$/
except: except:
- /^v\d+\.\d+\.\d+$/ - /^v\d+\.\d+\.\d+$/
...@@ -76,16 +77,16 @@ jobs: ...@@ -76,16 +77,16 @@ jobs:
node_js: '8' node_js: '8'
script: script:
- npm run semantic-release - npm run semantic-release
before_deploy: # before_deploy:
- npm run docs # - 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
stages: stages:
- lint - lint
- test - test
- name: release - name: release
if: branch = master AND type = push AND fork = false if: branch = v5 AND type = push AND fork = false
...@@ -115,6 +115,16 @@ ...@@ -115,6 +115,16 @@
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS" "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
} }
}, },
"release": {
"branch": "v5",
"verifyConditions": [
"@semantic-release/npm",
"@semantic-release/github"
]
},
"publishConfig": {
"tag": "v5"
},
"scripts": { "scripts": {
"lint": "eslint lib test --quiet", "lint": "eslint lib test --quiet",
"lint-docs": "markdownlint docs", "lint-docs": "markdownlint docs",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!