Skip to content

Commit

Permalink
chore(ci) weekly releases (#240)
Browse files Browse the repository at this point in the history
* chore(ci) setup auto release in CI

* fix how we get nvm setup

* debug

* put the testing stages back in
  • Loading branch information
hutchic authored Mar 17, 2020
1 parent 13e5cd9 commit fb3fc82
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
"headerPattern": '^(\w*)(?:\(([\w\$\.\-\* ]*)\))? (.*)$'
}
}],
'@semantic-release/github',
'@semantic-release/release-notes-generator'
["@semantic-release/release-notes-generator", {
"preset": "angular",
"parserOpts": {
"headerPattern": '^(\w*)(?:\(([\w\$\.\-\* ]*)\))? (.*)$'
}
}],
'@semantic-release/github'
]
}
21 changes: 21 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
pipeline {
agent none
triggers {
cron(env.BRANCH_NAME == 'master' ? '@weekly' : '')
}
environment {
KONG_SOURCE = "master"
KONG_SOURCE_LOCATION = "/tmp/kong"
Expand Down Expand Up @@ -184,5 +187,23 @@ pipeline {
}
}
}
stage('Release') {
agent {
node {
label 'docker-compose'
}
}
when {
triggeredBy 'TimerTrigger'
}
environment {
GITHUB_TOKEN = credentials('GITHUB_TOKEN')
}
steps {
sh 'curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash'
sh '. ~/.nvm/nvm.sh && nvm install lts/*'
sh '. ~/.nvm/nvm.sh && npx semantic-release@beta'
}
}
}
}

0 comments on commit fb3fc82

Please sign in to comment.