Skip to content

Commit

Permalink
feat: make examples follow version of create-dxcli
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 28, 2018
1 parent ca685a4 commit de2b9fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .circleci/release_example
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const path = require('path')
sh.set('-ev')

sh.exec('yarn link')
const version = process.argv[2]
const [,, version, releaseType, notes] = process.argv

const examples = [
'example-single-js',
Expand Down Expand Up @@ -61,7 +61,7 @@ examples.forEach(example => {
sh.exec(`create-dxcli ${type} --force --defaults ${options}`)
sh.exec('git add -A')
try {
sh.exec(`git commit -m "fix: create-dxcli ${version}"`)
sh.exec(`git commit -m "${releaseType === 'patch' ? 'fix' : 'feat'}: create-dxcli v${version}"\n\n${notes}`)
sh.exec('git push')
} catch (err) {
console.error(err)
Expand Down
2 changes: 1 addition & 1 deletion release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
publish: [
{
path: '@semantic-release/exec',
cmd: './.circleci/release_example ${nextRelease.version}',
cmd: './.circleci/release_example ${nextRelease.version} ${nextRelease.type} ${nextRelease.notes}',
},
'@semantic-release/changelog',
'@semantic-release/npm',
Expand Down

0 comments on commit de2b9fc

Please sign in to comment.