{"id":22076482,"url":"https://github.com/codecademy/run-on-yarn","last_synced_at":"2026-02-20T19:02:20.586Z","repository":{"id":45124637,"uuid":"419401440","full_name":"Codecademy/run-on-yarn","owner":"Codecademy","description":"Composite GitHub Action to run a command with Yarn. ✨","archived":false,"fork":false,"pushed_at":"2024-10-17T15:05:34.000Z","size":21,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-09T18:13:32.978Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/Codecademy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2021-10-20T16:08:24.000Z","updated_at":"2025-04-04T03:03:35.000Z","dependencies_parsed_at":"2024-10-20T14:46:35.239Z","dependency_job_id":null,"html_url":"https://github.com/Codecademy/run-on-yarn","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codecademy%2Frun-on-yarn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codecademy%2Frun-on-yarn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codecademy%2Frun-on-yarn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codecademy%2Frun-on-yarn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Codecademy","download_url":"https://codeload.github.com/Codecademy/run-on-yarn/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248085326,"owners_count":21045139,"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":[],"created_at":"2024-11-30T22:14:48.654Z","updated_at":"2025-10-13T09:02:54.795Z","avatar_url":"https://github.com/Codecademy.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# run-on-yarn\n\nComposite GitHub Action to run a command with Yarn. ✨\n\n## Usage\n\nThis action will:\n\n1. Use `actions/checkout` and `actions/setup-node` to set up a yarn environment\n2. Use `actions/cache` to restore a cache based on the `yarn.lock`\n3. `yarn install --frozen-lockfile` if the folder didn't exist in the cache\n4. Run `yarn ${{ inputs.command }}`\n\n### Inputs\n\n* `command`: Command to run. Required.\n\n## Example\n\n### Simplest Usage\n\nRunning a single `yarn test` command on all commit pushes:\n\n```yml\n# .github/workflows/push.yml\nname: Push CI\n\njobs:\n  ci:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: Codecademy/run-on-yarn@v1\n        with:\n          command: test\n\non: push\n```\n\n### Matrix of Commands\n\nAssuming the `compile`, `format:verify`, and `test` scripts exist in your `package.json`, this setup will run those commands in parallel as your Push CI job:\n\n```yml\n# .github/workflows/push.yml\nname: Push CI\n\njobs:\n  ci:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: Codecademy/run-on-yarn@v1\n        with:\n          command: ${{ matrix.command }}\n\n    strategy:\n      fail-fast: false\n      matrix:\n        command: ['compile', 'format:verify', 'test']\n\non: push\n```\n\n### Optional Inputs\n\nSpecifying a Node.js version\n\n```yml\n# .github/workflows/push.yml\nname: Push CI\n\njobs:\n  ci:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: Codecademy/run-on-yarn@v1\n        with:\n          command: test\n          node-version: 16\n\non: push\n```\n\n\nSpecifying a different Github token to be used during checkout\n\n**Note:** this is only necessary to override in certain extreme edge cases\n\n```yml\n# .github/workflows/push.yml\nname: Push CI\n\njobs:\n  ci:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: Codecademy/run-on-yarn@v1\n        with:\n          command: test\n          github-token: ${{ secrets.PERSONAL_TOKEN }}\n\non: push\n```\n\n\n### Contribution Guidelines\n\nWe'd love to have you contribute!\nCheck the [issue tracker](https://github.com/Codecademy/run-on-yarn/issues) for issues labeled [Accepting PRs](https://github.com/Codecademy/run-on-yarn/issues?utf8=%E2%9C%93\u0026q=is%3Aissue+is%3Aopen+label%3A%22Accepting+PRs%22) to find bug fixes and feature requests the community can work on.\nIf this is your first time working with this code, the [Good First issue](https://github.com/Codecademy/guidelines/issues?utf8=%E2%9C%93\u0026q=is%3Aissue+is%3Aopen+label%3A%22Good+First+Issue%22+) label indicates good introductory issues.\n\nPlease note that this project is released with a [Contributor Covenant](https://www.contributor-covenant.org).\nBy participating in this project you agree to abide by its terms.\nSee [CODE_OF_CONDUCT.md](./CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecademy%2Frun-on-yarn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodecademy%2Frun-on-yarn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecademy%2Frun-on-yarn/lists"}