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

Add alpha publish

parent 29a21c97
...@@ -38,6 +38,20 @@ jobs: ...@@ -38,6 +38,20 @@ jobs:
- run: - run:
name: Publishing to Canary Channel name: Publishing to Canary Channel
command: yarn run lerna publish from-git --npm-tag canary --yes 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: workflows:
version: 2 version: 2
unscheduled: unscheduled:
...@@ -54,6 +68,14 @@ workflows: ...@@ -54,6 +68,14 @@ workflows:
only: /^.*canary.*($|\b)/ only: /^.*canary.*($|\b)/
branches: branches:
ignore: /.*/ ignore: /.*/
- publish-alpha:
requires:
- build
filters:
tags:
only: /^.*alpha.*($|\b)/
branches:
ignore: /.*/
- publish-stable: - publish-stable:
requires: requires:
- build - build
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"command": { "command": {
"publish": { "publish": {
"npmClient": "npm", "npmClient": "npm",
"allowBranch": "canary", "allowBranch": ["canary", "alpha"],
"registry": "https://registry.npmjs.org/" "registry": "https://registry.npmjs.org/"
} }
}, },
......
...@@ -15,7 +15,9 @@ ...@@ -15,7 +15,9 @@
"coveralls": "nyc --instrument=false --source-map=false report --temp-directory=./coverage --reporter=text-lcov | coveralls", "coveralls": "nyc --instrument=false --source-map=false report --temp-directory=./coverage --reporter=text-lcov | coveralls",
"precommit": "lint-staged", "precommit": "lint-staged",
"lint": "lerna run lint", "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": { "lint-staged": {
"*.js": "standard", "*.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