{"id":15168525,"url":"https://github.com/bitrise-steplib/steps-yarn","last_synced_at":"2025-10-25T13:30:50.552Z","repository":{"id":43689573,"uuid":"71430862","full_name":"bitrise-steplib/steps-yarn","owner":"bitrise-steplib","description":"Bitrise step for yarn","archived":false,"fork":false,"pushed_at":"2023-11-20T14:53:49.000Z","size":60,"stargazers_count":5,"open_issues_count":0,"forks_count":7,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-01-31T07:11:47.426Z","etag":null,"topics":["bitrise","bitrise-step","ci","production-code","yarn","yarn-packages"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitrise-steplib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-10-20T06:09:55.000Z","updated_at":"2022-02-23T13:07:05.000Z","dependencies_parsed_at":"2024-06-19T04:01:48.877Z","dependency_job_id":"7b855939-1f57-47eb-80db-67cb8b4e3b86","html_url":"https://github.com/bitrise-steplib/steps-yarn","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitrise-steplib%2Fsteps-yarn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitrise-steplib%2Fsteps-yarn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitrise-steplib%2Fsteps-yarn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitrise-steplib%2Fsteps-yarn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitrise-steplib","download_url":"https://codeload.github.com/bitrise-steplib/steps-yarn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238147556,"owners_count":19424283,"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":["bitrise","bitrise-step","ci","production-code","yarn","yarn-packages"],"created_at":"2024-09-27T06:20:41.923Z","updated_at":"2025-10-25T13:30:50.203Z","avatar_url":"https://github.com/bitrise-steplib.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Run yarn command\n\n[![Step changelog](https://shields.io/github/v/release/bitrise-community/steps-yarn?include_prereleases\u0026label=changelog\u0026color=blueviolet)](https://github.com/bitrise-community/steps-yarn/releases)\n\nRuns `yarn` with the given command and args.\n\n\u003cdetails\u003e\n\u003csummary\u003eDescription\u003c/summary\u003e\n\n\nYarn is a package manager that is compatible with the npm registry. Download your app's dependencies via yarn by using this Step.\n\n### Configuring the Step\n\nTo use the Step, you need to configure your dependencies in your `package.json` file.\n\n1. Set a command in **The yarn command to run** input.\n\n   If you leave the input blank, the Step will simply install your dependencies. You can find the other available command in [yarn's documentation](https://yarnpkg.com/lang/en/docs/cli/).\n\n1. Set the arguments in the **Arguments for running yarn commands** input.\n\n   You can specify multiple arguments. Check out the available arguments for each command in yarn's documentation.\n\nYou can also cache the contents of the node_modules directory by setting the **Cache node_modules** input to `yes`.\n\n### Troubleshooting\n\nIf the Step fails, run it again with verbose logging enabled. To do so, set the **Enable verbose logging** input to `yes`. Doing so allows yarn to output more information about the command you ran.\n\nMake sure your commands and arguments are correct, and that your packages are correctly defined in the `package.json` file.\n\n### Useful links\n\n[Getting started with React Native apps](https://devcenter.bitrise.io/getting-started/getting-started-with-react-native-apps/)\n[Running Detox tests on Bitrise](https://devcenter.bitrise.io/testing/running-detox-tests-on-bitrise/)\n\n### Related Steps\n\n[Run Cocoapods install](https://www.bitrise.io/integrations/steps/cocoapods-install)\n[Run npm command](https://www.bitrise.io/integrations/steps/npm)\n\u003c/details\u003e\n\n## 🧩 Get started\n\nAdd this step directly to your workflow in the [Bitrise Workflow Editor](https://devcenter.bitrise.io/steps-and-workflows/steps-and-workflows-index/).\n\nYou can also run this step directly with [Bitrise CLI](https://github.com/bitrise-io/bitrise).\n\n## ⚙️ Configuration\n\n\u003cdetails\u003e\n\u003csummary\u003eInputs\u003c/summary\u003e\n\n| Key | Description | Flags | Default |\n| --- | --- | --- | --- |\n| `workdir` | Working directory of the step. You can leave it empty to not change it.  |  | `$BITRISE_SOURCE_DIR` |\n| `command` | Specify the command to run with `yarn`. For example `add`. Leave it blank to install dependencies.  |  |  |\n| `args` | Arguments are added to the `yarn` command. You can specify multiple arguments, separated by a space character. For example `react` or `-dev` |  |  |\n| `cache_local_deps` | Select if the contents of node_modules directory should be cached.  `yes`: Mark local dependencies to be cached. `no`: Do not use cache.  All node_modules folders (recursively) located under the working directory will be cached. | required | `no` |\n| `verbose_log` | Choose if debug logging is enabled.  | required | `no` |\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eOutputs\u003c/summary\u003e\nThere are no outputs defined in this step\n\u003c/details\u003e\n\n## 🙋 Contributing\n\nWe welcome [pull requests](https://github.com/bitrise-community/steps-yarn/pulls) and [issues](https://github.com/bitrise-community/steps-yarn/issues) against this repository.\n\nFor pull requests, work on your changes in a forked repository and use the Bitrise CLI to [run step tests locally](https://devcenter.bitrise.io/bitrise-cli/run-your-first-build/).\n\nLearn more about developing steps:\n\n- [Create your own step](https://devcenter.bitrise.io/contributors/create-your-own-step/)\n- [Testing your Step](https://devcenter.bitrise.io/contributors/testing-and-versioning-your-steps/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitrise-steplib%2Fsteps-yarn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitrise-steplib%2Fsteps-yarn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitrise-steplib%2Fsteps-yarn/lists"}