Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
chore(build): add semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
adriancarriger authored and adriancarriger committed Dec 6, 2017
1 parent dc0552d commit 1e3f826
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node:7.10
- image: node:8.0

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
Expand Down Expand Up @@ -36,3 +36,4 @@ jobs:
# run tests!
- run: yarn test
- run: bash <(curl -s https://codecov.io/bash)
- run: DEBUG=condition npm run semantic-release || true
21 changes: 15 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "frosted-glass",
"version": "0.0.6",
"version": "0.0.0-semantic-release",
"description": "Frosted Glass",
"main": "dist/collection/index.js",
"types": "dist/collection/index.d.ts",
Expand All @@ -15,21 +15,24 @@
"serve": "stencil-dev-server",
"start": "npm run dev",
"test": "jest --no-cache",
"test.watch": "jest --watch --no-cache"
"test.watch": "jest --watch --no-cache",
"semantic-release": "semantic-release pre && npm run build && npm publish && semantic-release post"
},
"dependencies": {},
"devDependencies": {
"@stencil/core": "0.0.8-5",
"@stencil/dev-server": "latest",
"@stencil/utils": "latest",
"@types/jest": "^21.1.1",
"jest": "^21.2.1"
"condition-circle": "^1.5.0",
"jest": "^21.2.1",
"semantic-release": "^8.2.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/adriancarriger/frosted-glass.git"
"url": "https://github.com/adriancarriger/frosted-glass.git"
},
"author": "Adrian Carriger",
"author": "Adrian Carriger <[email protected]> (http://adriancarriger.com)",
"license": "MIT",
"bugs": {
"url": "https://github.com/adriancarriger/frosted-glass/issues"
Expand All @@ -40,7 +43,10 @@
"^.+\\.(ts|tsx)$": "<rootDir>/node_modules/@stencil/core/testing/jest.preprocessor.js"
},
"testRegex": "(/src/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$",
"testPathIgnorePatterns": ["/node_modules/", "/demos/"],
"testPathIgnorePatterns": [
"/node_modules/",
"/demos/"
],
"moduleFileExtensions": [
"ts",
"tsx",
Expand All @@ -49,5 +55,8 @@
"jsx"
],
"collectCoverage": true
},
"release": {
"verifyConditions": "condition-circle"
}
}

0 comments on commit 1e3f826

Please sign in to comment.