diff --git a/.circleci/config.yml b/.circleci/config.yml index 9f5e6be9..d90741b2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -56,6 +56,19 @@ jobs: github --yes - run: yarn lerna publish from-git --yes + prerelease: + executor: linux-node + steps: + - checkout + - vault/get-secrets: + template-preset: 'semantic-release' + - yarn_install + - vault/configure-lerna + - run: echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > ~/.npmrc + - run: yarn build # This should not be needed, but without it it will not contain any files + - run: yarn lerna version --no-private --conventional-commits --conventional-prerelease + - run: yarn lerna publish from-git --yes + workflows: version: 2 # run on every commit @@ -65,6 +78,14 @@ workflows: context: vault - unit-tests: context: vault + - prerelease: + context: vault + filters: + branches: + only: canary + requires: + - lint + - unit-tests - release: context: vault filters: diff --git a/lerna.json b/lerna.json index 7df5b1e7..63e0bb46 100644 --- a/lerna.json +++ b/lerna.json @@ -4,7 +4,7 @@ "version": "independent", "command": { "version": { - "allowBranch": "main", + "allowBranch": ["main", "canary"], "conventionalCommits": true, "message": "chore(release): updated release notes and package versions [ci skip]", "ignoreChanges": [