Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ git:
depth: false
language: node_js
env:
- COMMITCOUNT="$(git log $(git describe --tags --abbrev=0)..HEAD --oneline|grep -iv 'revert' |grep -e 'fix(' -e 'feat(' | wc -l | awk '{print $1}')"
- COMMITCOUNT="$(git log $(git describe --tags --abbrev=0)..HEAD --oneline|grep -iv 'revert' |grep -e 'fix(' -e 'feat(' -e 'fix:' -e 'feat:' | wc -l | awk '{print $1}')"
cache:
directories:
- ~/.npm
Expand Down Expand Up @@ -35,12 +35,15 @@ jobs:
before_script: cd packages/server
name: test-server
- stage: release
if: (type = push AND branch = master AND env(COMMITCOUNT) != 0)
if: (type = push AND branch = master)
before_script:
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
- git remote add pub https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
- git fetch pub master
- git checkout master
script:
- make fake-credentials
- make publish
- if [ $COMMITCOUNT != 0 ]; then
echo "########create new release########";
make fake-credentials;
make publish;
fi
2 changes: 1 addition & 1 deletion renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["config:base"],
"baseBranches": ["dev"],
"baseBranches": ["master"],
"automerge": true,
"packageRules": [{
"depTypeList": ["dependencies"],
Expand Down