{"id":16962525,"url":"https://github.com/threeal/setup-yarn-action","last_synced_at":"2025-04-05T15:43:30.362Z","repository":{"id":210711518,"uuid":"727125847","full_name":"threeal/setup-yarn-action","owner":"threeal","description":" Install Node.js dependencies using Yarn with cache support on GitHub Actions","archived":false,"fork":false,"pushed_at":"2024-02-20T16:31:35.000Z","size":1194,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-02-20T17:33:45.206Z","etag":null,"topics":["action","actions","github-actions","javascript","nodejs","typescript","yarn"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/threeal.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}},"created_at":"2023-12-04T08:35:01.000Z","updated_at":"2024-02-28T13:40:21.397Z","dependencies_parsed_at":"2024-02-22T06:41:17.707Z","dependency_job_id":null,"html_url":"https://github.com/threeal/setup-yarn-action","commit_stats":null,"previous_names":["threeal/yarn-install-action","threeal/setup-yarn-action"],"tags_count":4,"template":false,"template_full_name":"threeal/action-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threeal%2Fsetup-yarn-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threeal%2Fsetup-yarn-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threeal%2Fsetup-yarn-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threeal%2Fsetup-yarn-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/threeal","download_url":"https://codeload.github.com/threeal/setup-yarn-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247361598,"owners_count":20926642,"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":["action","actions","github-actions","javascript","nodejs","typescript","yarn"],"created_at":"2024-10-13T23:07:01.736Z","updated_at":"2025-04-05T15:43:30.346Z","avatar_url":"https://github.com/threeal.png","language":"TypeScript","readme":"# Setup Yarn Berry Action\n\nThe Setup Yarn Berry Action is a [GitHub action](https://github.com/features/actions) designed to set up the [Yarn](https://yarnpkg.com/) package manager in the GitHub workflows of your [Node.js](https://nodejs.org/en) projects.\nThis action sets up Yarn to a specified version and installs dependencies for the current Node.js project with cache support.\nCache support provides fast setup for Node.js projects by using dependencies installed from previous runs.\n\nThis action currently only supports the berry version of Yarn (Yarn 2+).\nIf your project still uses the classic version of Yarn, it is suggested to migrate to the berry version.\nRefer to [this](https://yarnpkg.com/migration/overview) for the migration guide.\n\n## Key Features\n\nThe Setup Yarn Berry Action offers the following key features:\n\n- Sets up Yarn to a specified version.\n- Installs dependencies for the current Node.js project with cache support.\n\n## Available Inputs\n\nHere are the available input parameters for the Setup Yarn Berry Action:\n\n| Name      | Type    | Description                                                                                                                                                                                                                            |\n| --------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `version` | String  | Specifies the version of Yarn to set up using this action. The specified version can be a tag (e.g., `stable`), a semver range (e.g., `4.x`), or a semver version (e.g., `4.1.0`). If not specified, it uses the default Yarn version. |\n| `cache`   | Boolean | Indicates whether to enable caching during Yarn installation. It defaults to `true`.                                                                                                                                                   |\n\n## Example Usage\n\nHere's a basic example demonstrating how to utilize the Setup Yarn Berry Action to set up the default version of Yarn and install dependencies for the current Node.js project in the GitHub workflow:\n\n```yaml\nname: Node.js CI\non:\n  push:\njobs:\n  build:\n    name: Build Project\n    runs-on: ubuntu-24.04\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4.2.2\n\n      - name: Setup Yarn\n        uses: threeal/setup-yarn-action@v2.0.0\n\n      # Add more steps as needed for your workflow\n```\n\n### Specifying Yarn Version\n\nBy default, this action will set up Yarn to the default version specified by the current Node.js project.\nHowever, you can override it by specifying it in the `version` input parameter as shown below:\n\n```yaml\n- name: Setup Latest Yarn\n  uses: threeal/setup-yarn-action@v2.0.0\n  with:\n    version: latest\n```\n\nRefer to [this](https://yarnpkg.com/cli/set/version) for more information on the available versions that can be set up by this action.\n\n### Disabling Caching\n\nBy default, caching is always enabled when installing dependencies of the current Node.js project.\nTo disable it, set the `cache` input parameter to `false` as shown below:\n\n```yaml\n- name: Setup Yarn Without Caching\n  uses: threeal/setup-yarn-action@v2.0.0\n  with:\n    cache: false\n```\n\n## License\n\nThis project is licensed under the terms of the [MIT License](./LICENSE).\n\nCopyright © 2023-2025 [Alfi Maulana](https://github.com/threeal/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreeal%2Fsetup-yarn-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthreeal%2Fsetup-yarn-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreeal%2Fsetup-yarn-action/lists"}