diff --git a/.drone.yml b/.drone.yml index ad9e197..4dd6a28 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,7 +13,7 @@ steps: settings: semantic_release: true update_readme_toc: true - use_local_rc: false + use_local_rc: true git_method: cr git_user_name: from_secret: user_gitea diff --git a/release.config.js b/release.config.js new file mode 100644 index 0000000..9bd0b19 --- /dev/null +++ b/release.config.js @@ -0,0 +1,34 @@ +module.exports = { + "branches": [ + "master", + { + "name": "alpha", + "prerelease": true + }, + { + "name": "beta", + "prerelease": true + }, + { + "name": "rc", + "prerelease": true + } + ], + "verifyConditions": [ + "@semantic-release/changelog", + "@semantic-release/git" + ], + "prepare": [ + "@semantic-release/changelog", + { + "path": "@semantic-release/git", + "assets": [ + "CHANGELOG.md", + process.env.README_LOCATION ? process.env.README_LOCATION : 'README.md' , + "yarn.lock", + "npm-shrinkwrap.json" + ], + "message": "chore(release): <%= nextRelease.version %> - <%= new Date().toISOString().slice(0,10).replace(/-/g,'') %> [skip ci]\n\n<%= nextRelease.notes %>" + } + ] + } \ No newline at end of file