From 8445647ee6f21578a42cddbf67bd038f0c079a05 Mon Sep 17 00:00:00 2001 From: Jimmy Andrade Date: Sun, 7 Jun 2020 13:43:53 -0300 Subject: [PATCH] chore(semantic-release): try to configure semantic-release for monorepo --- .travis.yml | 15 +++++++++++++++ package.json | 1 + 2 files changed, 16 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..dcd7bb4c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +branches: + only: + - master + - /^v?\d+\.\d+(\.\d+)?(-\S*)?$/ +language: node_js +jobs: + include: + - stage: release + node_js: lts/* + deploy: + provider: script + script: + - npx semantic-release +node_js: + - node diff --git a/package.json b/package.json index c4ae1415..eea4a686 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "husky:prepush": "npm run test", "lerna:install": "lerna bootstrap", "postinstall": "npm run lerna:install", + "semantic-release": "lerna exec --concurrency 1 -- npx --no-install semantic-release -e semantic-release-monorepo", "test": "lerna run test" }, "repository": {