Navigation Menu

Skip to content

Commit

Permalink
refactor: isolate the googleapis-common module (#1169)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith committed May 15, 2018
1 parent 310123f commit 2fef1ae
Show file tree
Hide file tree
Showing 227 changed files with 3,772 additions and 1,855 deletions.
31 changes: 29 additions & 2 deletions .circleci/config.yml
Expand Up @@ -64,7 +64,7 @@ workflows:
filters:
tags:
only: /.*/
- publish_npm:
- publish_shared:
requires:
- node6
- node8
Expand All @@ -75,6 +75,14 @@ workflows:
ignore: /.*/
tags:
only: /^v[\d.]+$/
- publish_npm:
requires:
- publish_shared
filters:
branches:
ignore: /.*/
tags:
only: /^v[\d.]+$/
nightly:
triggers:
- schedule:
Expand Down Expand Up @@ -107,6 +115,25 @@ jobs:
user: node
<<: *unit_tests

publish_shared:
docker:
- image: node:8
user: node
steps:
- checkout
- run:
name: Switch to the common directory
command: cd src/shared
- run:
name: Install modules and dependencies.
command: npm install
- run:
name: Set NPM authentication.
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
- run:
name: Publish the module to npm.
command: npm publish --access=public

publish_npm:
docker:
- image: node:8
Expand All @@ -115,7 +142,7 @@ jobs:
- checkout
- run:
name: Install modules and dependencies.
command: npm install --unsafe-perm
command: npm install
- run:
name: Build
command: make build
Expand Down

0 comments on commit 2fef1ae

Please sign in to comment.