Commit 322ecb84 authored by Tim Neutkens's avatar Tim Neutkens

Add alpha publish

parent 29a21c97
......@@ -38,6 +38,20 @@ jobs:
- run:
name: Publishing to Canary Channel
command: yarn run lerna publish from-git --npm-tag canary --yes
publish-alpha:
docker:
- image: circleci/node:9.10.0
working_directory: ~/repo
steps:
- checkout
- run: yarn install
- run: yarn bootstrap
- run:
name: Saving Authentication Information
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run:
name: Publishing to Alpha Channel
command: yarn run lerna publish from-git --npm-tag alpha --yes
workflows:
version: 2
unscheduled:
......@@ -54,6 +68,14 @@ workflows:
only: /^.*canary.*($|\b)/
branches:
ignore: /.*/
- publish-alpha:
requires:
- build
filters:
tags:
only: /^.*alpha.*($|\b)/
branches:
ignore: /.*/
- publish-stable:
requires:
- build
......
......@@ -7,7 +7,7 @@
"command": {
"publish": {
"npmClient": "npm",
"allowBranch": "canary",
"allowBranch": ["canary", "alpha"],
"registry": "https://registry.npmjs.org/"
}
},
......
......@@ -15,7 +15,9 @@
"coveralls": "nyc --instrument=false --source-map=false report --temp-directory=./coverage --reporter=text-lcov | coveralls",
"precommit": "lint-staged",
"lint": "lerna run lint",
"prepublish": "lerna run prepublish"
"prepublish": "lerna run prepublish",
"publish-canary": "yarn lerna version prerelease --preid canary --force-publish",
"publish-alpha": "yarn lerna version prerelease --preid canary --force-publish"
},
"lint-staged": {
"*.js": "standard",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment