Skip to content

Commit

Permalink
fix(release): setup release
Browse files Browse the repository at this point in the history
  • Loading branch information
BowlingX committed Jan 15, 2019
1 parent 387f041 commit 8563f4e
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 6 deletions.
32 changes: 32 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node
working_directory: ~/repo

steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: yarn install

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

- run: yarn run test
- run:
name: release if necessary
command: yarn run semantic-release
22 changes: 19 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apollo-proxy-cache",
"version": "1.0.0",
"version": "0.1.0",
"description": "Provides an apollo-link and express (proxy) middleware setup to support a local `@cache` directive",
"main": "dist/index.js",
"repository": "[email protected]:BowlingX/apollo-proxy-cache.git",
Expand All @@ -17,6 +17,11 @@
"@babel/plugin-transform-flow-strip-types": "^7.2.3",
"@babel/preset-env": "^7.2.3",
"@babel/preset-flow": "^7.0.0",
"@semantic-release/changelog": "^3.0.2",
"@semantic-release/commit-analyzer": "^6.1.0",
"@semantic-release/git": "^7.0.8",
"@semantic-release/npm": "^5.1.3",
"@semantic-release/release-notes-generator": "^7.1.4",
"eslint": "^5.12.0",
"eslint-config-google": "^0.11.0",
"eslint-plugin-flowtype": "^3.2.1",
Expand All @@ -27,10 +32,21 @@
"semantic-release": "^15.13.3"
},
"scripts": {
"build": "yarn run build:clean && yarn run build:lib && yarn run build:flow",
"prepare": "yarn run build:clean && yarn run build:lib && yarn run build:flow",
"build:clean": "rimraf dist",
"build:lib": "babel src -d dist",
"build:flow": "flow-copy-source -v src dist"
"build:flow": "flow-copy-source -v src dist",
"test": "yarn eslint src"
},
"release": {
"branch": "master",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git"
]
},
"dependencies": {
"@babel/polyfill": "^7.2.5",
Expand Down
32 changes: 29 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,16 @@
universal-user-agent "^2.0.0"
url-template "^2.0.8"

"@semantic-release/changelog@^3.0.2":
version "3.0.2"
resolved "https://registry.yarnpkg.com/@semantic-release/changelog/-/changelog-3.0.2.tgz#b09a8e0d072ef54d2bc7a5c82f6112dc3c8ae85d"
integrity sha512-pDUaBNAuPAqQ+ArHwvR160RG2LbfyIVz9EJXgxH0V547rlx/hCs0Sp7L4Rtzi5Z+d6CHcv9g2ynxplE1xAzp2g==
dependencies:
"@semantic-release/error" "^2.1.0"
aggregate-error "^2.0.0"
fs-extra "^7.0.0"
lodash "^4.17.4"

"@semantic-release/commit-analyzer@^6.1.0":
version "6.1.0"
resolved "https://registry.yarnpkg.com/@semantic-release/commit-analyzer/-/commit-analyzer-6.1.0.tgz#32bbe3c23da86e23edf072fbb276fa2f383fcb17"
Expand All @@ -722,11 +732,27 @@
import-from "^2.1.0"
lodash "^4.17.4"

"@semantic-release/error@^2.2.0":
"@semantic-release/error@^2.1.0", "@semantic-release/error@^2.2.0":
version "2.2.0"
resolved "https://registry.yarnpkg.com/@semantic-release/error/-/error-2.2.0.tgz#ee9d5a09c9969eade1ec864776aeda5c5cddbbf0"
integrity sha512-9Tj/qn+y2j+sjCI3Jd+qseGtHjOAeg7dU2/lVcqIQ9TV3QDaDXDYXcoOHU+7o2Hwh8L8ymL4gfuO7KxDs3q2zg==

"@semantic-release/git@^7.0.8":
version "7.0.8"
resolved "https://registry.yarnpkg.com/@semantic-release/git/-/git-7.0.8.tgz#b9e1af094a19d4e96974b90a969ad0e6782c8727"
integrity sha512-sA+XoPU6GrV+A4YswO0b5JWL1KbzmyyaqUK6Y2poDkIVPlj+oQdi/stpKz/bKF5z9ChMGP87OVPMeUyXGaNFtw==
dependencies:
"@semantic-release/error" "^2.1.0"
aggregate-error "^2.0.0"
debug "^4.0.0"
dir-glob "^2.0.0"
execa "^1.0.0"
fs-extra "^7.0.0"
globby "^9.0.0"
lodash "^4.17.4"
micromatch "^3.1.4"
p-reduce "^1.0.0"

"@semantic-release/github@^5.1.0":
version "5.2.9"
resolved "https://registry.yarnpkg.com/@semantic-release/github/-/github-5.2.9.tgz#f0c6aef12a2ea9872d73c996bf51b7b731567572"
Expand All @@ -750,7 +776,7 @@
parse-github-url "^1.0.1"
url-join "^4.0.0"

"@semantic-release/npm@^5.0.5":
"@semantic-release/npm@^5.0.5", "@semantic-release/npm@^5.1.3":
version "5.1.3"
resolved "https://registry.yarnpkg.com/@semantic-release/npm/-/npm-5.1.3.tgz#96cea6fcab1a83dba2803ae453bcaaa87cdbabe9"
integrity sha512-DpHWUMuBVuHTLuAwT8xAfbBdf62OrghDxdBiVA2Cp52WblZihPMTBz/WtCJYWlvcdv1e1K9aAoSNoVImHfAU3w==
Expand All @@ -767,7 +793,7 @@
read-pkg "^4.0.0"
registry-auth-token "^3.3.1"

"@semantic-release/release-notes-generator@^7.1.2":
"@semantic-release/release-notes-generator@^7.1.2", "@semantic-release/release-notes-generator@^7.1.4":
version "7.1.4"
resolved "https://registry.yarnpkg.com/@semantic-release/release-notes-generator/-/release-notes-generator-7.1.4.tgz#8f4f752c5a8385abdaac1256127cef05988bc2ad"
integrity sha512-pWPouZujddgb6t61t9iA9G3yIfp3TeQ7bPbV1ixYSeP6L7gI1+Du82fY/OHfEwyifpymLUQW0XnIKgKct5IMMw==
Expand Down

0 comments on commit 8563f4e

Please sign in to comment.