# NPM private modules and project build chains

**URL:** <https://discuss.circleci.com/t/npm-private-modules-and-project-build-chains/2646>\
**Category:** Deployments\
**Created:** [March 11, 2016, 4:21pm UTC](https://discuss.circleci.com/t/npm-private-modules-and-project-build-chains/2646 "2016-03-11T16:21:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JADurham909](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/jadurham909/32/1984_2.png) [@JADurham909](https://discuss.circleci.com/u/JADurham909)\
**Post date:** [March 11, 2016, 4:21pm UTC](https://discuss.circleci.com/t/npm-private-modules-and-project-build-chains/2646/1 "2016-03-11T16:21:30Z")

</div>

For those working with private NPM modules that are shared across projects, has anyone found a way to have dependent project builds trigger on a successful build / deployment to NPM of the private module project? In our dev environment I was thinking of just having the module globally installed as part of the Docker file so it would just pull the latest on each chained build. This would not required any GIT commits, PR’s etc that would normally trigger it.

---

<div class="post-metadata">

**Author:** ![d3ming](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/d3ming/32/34_2.png) [@d3ming](https://discuss.circleci.com/u/d3ming)\
**Post date:** [March 11, 2016, 10:15pm UTC](https://discuss.circleci.com/t/npm-private-modules-and-project-build-chains/2646/2 "2016-03-11T22:15:12Z")

</div>

My team is trying to do something similar but we are going down the path of using circleci to trigger builds / dependency-chaining projects through CI.

We just started on an open source project that helps with this, called [cinderblock](https://github.com/paperg/cinderblock), can you take a look and see if this is what you need? Notably, `cinderblock` will let you make the CI of one github repo trigger another CI job and provide feedback through github commit status for the first job.

As for private npm modules, you can publish updated modules with CircleCI following [this post](https://glebbahmutov.com/blog/automatically-publish-to-npm/). Then after the new module is published, trigger the dependent project build using `cinderblock`.

Hope this helps. We are also in early stages of trying to explore the best things to do for these cases so I’m very curious about what others are doing here.

---

<div class="post-metadata">

**Author:** ![emanuelcds](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/emanuelcds/32/3063_2.png) [@emanuelcds](https://discuss.circleci.com/u/emanuelcds)\
**Post date:** [May 24, 2016, 6:53pm UTC](https://discuss.circleci.com/t/npm-private-modules-and-project-build-chains/2646/3 "2016-05-24T18:53:01Z")

</div>

Please take a look on this repo:

> **[emanuelcds/circle-github-submodules](https://github.com/emanuelcds/circle-github-submodules)**
>
> circle-github-submodules - Integration of multiple github hosted submodules to trigger builds on the main project at circle-ci.

I solved the build chain problem by creating a new project with all project dependencies as submodules. In my case, I have a web application with two separated git repositories for frontend and backend. Each time a commit is made on frontend or backend repositores, the build bot running in heroku is triggered by github hook API and triggers a new build of the “platform-build” repository, that contains the recipes to build all submodules and release to the production servers if it passes in all tests.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:40am UTC](https://discuss.circleci.com/t/npm-private-modules-and-project-build-chains/2646/4 "2018-06-18T11:40:58Z")

</div>

Closed on June 18, 2018, 11:40am UTC


