{"id":13452571,"url":"https://github.com/entria/entria-deploy","last_synced_at":"2025-04-12T09:12:41.359Z","repository":{"id":33276849,"uuid":"157135733","full_name":"entria/entria-deploy","owner":"entria","description":"Entria Deploy helpers","archived":false,"fork":false,"pushed_at":"2024-08-31T00:11:20.000Z","size":1497,"stargazers_count":56,"open_issues_count":4,"forks_count":3,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-12T09:12:07.580Z","etag":null,"topics":["deploy","entria","lerna","monorepo"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/entria.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-12T00:37:16.000Z","updated_at":"2023-11-05T10:14:00.000Z","dependencies_parsed_at":"2024-07-31T07:14:38.547Z","dependency_job_id":"2f32743a-4431-42d2-9a2f-74677ac047a6","html_url":"https://github.com/entria/entria-deploy","commit_stats":{"total_commits":343,"total_committers":4,"mean_commits":85.75,"dds":0.04081632653061229,"last_synced_commit":"7789d63682634c814ff3b3f588d7a9dafaee6b8d"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entria%2Fentria-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entria%2Fentria-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entria%2Fentria-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entria%2Fentria-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/entria","download_url":"https://codeload.github.com/entria/entria-deploy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248543848,"owners_count":21121838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deploy","entria","lerna","monorepo"],"created_at":"2024-07-31T07:01:27.823Z","updated_at":"2025-04-12T09:12:41.342Z","avatar_url":"https://github.com/entria.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Entria Deploy\n\n- Gives a list of paths that changed from a compare url, example below:\n\n```\nhttps://github.com/sibelius/monorepo-101/compare/1662e1d...0edb974\n```\n\n- Check if a determined path has changed from a compare url\n\n## How to install\n\n```\nyarn add @entria/deploy --dev\n```\n\n## Usage with CircleCI\n\nAdd CIRCLECI_COMPARE_URL environment to your .circleci/config.yml\n\n```jsx\nenvironment:\n    CIRCLECI_COMPARE_URL: \u003c\u003c pipeline.project.git_url \u003e\u003e/compare/\u003c\u003c pipeline.git.base_revision \u003e\u003e...\u003c\u003cpipeline.git.revision\u003e\u003e\n```\n\n### Get files to be tested by jest\n\n```jsx\nTESTFILES=$(yarn entria-deploy changes $CIRCLECI_COMPARE_URL)\nyarn jest --maxWorkers=3 --coverage --forceExit --ci\n```\n\n### Check if you need to deploy some package\n```jsx\nSHOULD_BUILD=$(yarn entria-deploy hasChanged $CIRCLECI_COMPARE_URL packages/api)\nif [ \"$SHOULD_BUILD\" == false ]; then\n  circleci-agent step halt\nfi\n```\n\n## Usage in JavaScript/TypeScript\n\n```jsx\nimport { shouldDeployPackage, changedPaths } from '@entria/deploy';\n\n// it should be another compare url, from Travir of instance\nconst shouldDeploy = shouldDeployPackage(process.cwd())(process.env.CIRCLE_COMPARE_URL);\n\nif (shouldDeploy('packages/server') {\n    console.log('deploy server');\n}\n\nconst allchanges = await changedPaths(process.env.CIRCLE_COMPARE_URL);\nconsole.log('all changes');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fentria%2Fentria-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fentria%2Fentria-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fentria%2Fentria-deploy/lists"}