The repo uses Lerna with Yarn workspace. It includes 2 Serverless services and 1 shared package in the following structure
/packages
/logger
/services
/users
/posts
The users
service has the logger
package as a dependency, where as the posts
service does not.
- If a change is made in
posts
, onlyposts
service will be deployed on git push. Theusers
service will be skipped. - If a change is made in
users
, onlyusers
service will be deployed on git push. Theposts
service will be skipped. - If a change is made in
logger
, onlyusers
service will be deployed on git push. Theposts
service will be skipped.
- Fork the repo and add it to your Seed account
- Successfully deploy it once
- Make a change in
packages/logger/index.js
and git push - Check the
users
service is deployed - Check the
posts
service is skipped
- Make a change in
services/posts/handler.js
and git push - Check the
users
service is skipped - Check the
posts
service is deployed
- Make a change in
seed.yml
and git push - Check both
users
andposts
services are deployed