Merge pull request #17 from streamich/semantic-release

Semantic release
This commit is contained in:
Va Da 2018-10-28 22:10:45 +01:00 committed by GitHub
commit b3d24ef0eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2809 additions and 68 deletions

90
.circleci/config.yml Normal file
View File

@ -0,0 +1,90 @@
version: 2
refs:
container: &container
docker:
- image: node:8.11
working_directory: ~/repo
steps:
- &Versions
run:
name: Versions
command: node -v && npm -v && yarn -v
- &Install
run:
name: Install Dependencies
command: yarn install --pure-lockfile
- &Build
run:
name: Build
command: yarn build
- &Build_Storybook
run:
name: Build Storybook
command: yarn storybook:build
- &Test
run:
name: Test
command: yarn test
- &Upload_Storybook
run:
name: Upload Storybook
command: yarn storybook:upload
- &Release
run:
name: Release
command: yarn release
- &Commit_Status_Storybook
run:
name: Post commit status for Storybook
command: |
npx cross-ci :run \
npx commit-status success Storybook "'\${BUILD_VERSION}'" "'https://$CIRCLE_BUILD_NUM-154950925-gh.circle-artifacts.com/0/root/repo/storybook-static/index.html'"
jobs:
all:
<<: *container
steps:
- checkout
- *Versions
- *Install
- *Build
- *Build_Storybook
- *Test
- store_artifacts:
path: ~/repo/storybook-static
- *Commit_Status_Storybook
master:
<<: *container
steps:
- checkout
- *Versions
- *Install
- *Build
- *Build_Storybook
- *Test
- store_artifacts:
path: ~/repo/storybook-static
- *Commit_Status_Storybook
- *Upload_Storybook
- *Release
workflows:
version: 2
all:
jobs:
- all:
context: common-env-vars
filters:
branches:
ignore:
- master
- gh-pages
master:
jobs:
- master:
context: common-env-vars
filters:
branches:
only: master

View File

@ -10,13 +10,14 @@
"typings": "lib/index.d.ts",
"scripts": {
"start": "yarn storybook",
"test": "echo \"Error: no test specified\" && exit 1",
"test": "echo hmm...",
"build": "tsc",
"clean": "rimraf lib storybook-static",
"storybook": "start-storybook -p 6008",
"storybook:build": "build-storybook",
"storybook:upload": "gh-pages -d storybook-static",
"storybook:clean": "rimraf storybook-static"
"storybook:clean": "rimraf storybook-static",
"release": "semantic-release"
},
"author": "@streamich",
"license": "Unlicense",
@ -45,10 +46,31 @@
"ts-loader": "3",
"babel-core": "^6.26.3",
"rimraf": "^2.6.2",
"gh-pages": "^2.0.1"
"gh-pages": "^2.0.1",
"semantic-release": "^15.10.6",
"@semantic-release/changelog": "^3.0.1",
"@semantic-release/npm": "^5.0.5",
"@semantic-release/git": "^7.0.5"
},
"peerDependencies": {
"react": "16.7.0-alpha.0",
"react-dom": "16.7.0-alpha.0"
},
"config": {
"commitizen": {
"path": "git-cz"
}
},
"release": {
"verifyConditions": [
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git"
],
"prepare": [
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git"
]
}
}

2759
yarn.lock

File diff suppressed because it is too large Load Diff