Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: isolate the googleapis-common module #1169

Merged
merged 2 commits into from May 15, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
31 changes: 31 additions & 0 deletions .circleci/config.yml
Expand Up @@ -64,12 +64,24 @@ workflows:
filters:
tags:
only: /.*/
- publish_shared:
requires:
- node6
- node8
- node9
- node10
filters:
branches:
ignore: /.*/
tags:
only: /^v[\d.]+$/
- publish_npm:
requires:
- node6

This comment was marked as spam.

- node8
- node9
- node10
- publish_shared
filters:
branches:
ignore: /.*/
Expand Down Expand Up @@ -107,6 +119,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 --unsafe-perm

This comment was marked as spam.

- 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 Down