{"id":15174041,"url":"https://github.com/0xtheprodev/setup-js","last_synced_at":"2026-01-24T09:33:35.182Z","repository":{"id":257751451,"uuid":"858763807","full_name":"0xTheProDev/setup-js","owner":"0xTheProDev","description":"Shareable GitHub Workflow Action to Setup Workspace for JavaScript/TypeScript Projects.","archived":false,"fork":false,"pushed_at":"2024-09-19T10:03:33.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-17T02:56:15.724Z","etag":null,"topics":["actions","bun","github","javascript","nodejs","npm","pnpm","pnpm-workspaces","typescript","yarn","yarn-berry","yarn-workspaces"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/setup-javascript-workspace","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xTheProDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"0xTheProDev"}},"created_at":"2024-09-17T13:48:54.000Z","updated_at":"2024-09-19T10:03:09.000Z","dependencies_parsed_at":"2024-09-18T12:55:03.615Z","dependency_job_id":"4e3fcbd3-ea36-4de3-9ece-5534b23e030b","html_url":"https://github.com/0xTheProDev/setup-js","commit_stats":null,"previous_names":["0xtheprodev/setup-js"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xTheProDev%2Fsetup-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xTheProDev%2Fsetup-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xTheProDev%2Fsetup-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xTheProDev%2Fsetup-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xTheProDev","download_url":"https://codeload.github.com/0xTheProDev/setup-js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239885765,"owners_count":19713353,"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":["actions","bun","github","javascript","nodejs","npm","pnpm","pnpm-workspaces","typescript","yarn","yarn-berry","yarn-workspaces"],"created_at":"2024-09-27T11:23:20.116Z","updated_at":"2026-01-24T09:33:35.168Z","avatar_url":"https://github.com/0xTheProDev.png","language":null,"funding_links":["https://github.com/sponsors/0xTheProDev"],"categories":[],"sub_categories":[],"readme":"\u003c!-- markdownlint-configure-file { \"MD033\": false } --\u003e\n\n# action/setup-js\n\n[![License](https://img.shields.io/github/license/0xTheProDev/setup-js?style=for-the-badge\u0026label=license)](https://github.com/0xTheProDev/setup-js/blob/main/LICENSE)\n[![Open Issues](https://img.shields.io/github/issues-raw/0xTheProDev/setup-js?style=for-the-badge)](https://github.com/0xTheProDev/setup-js/issues)\n[![Closed Issues](https://img.shields.io/github/issues-closed-raw/0xTheProDev/setup-js?style=for-the-badge)](https://github.com/0xTheProDev/setup-js/issues?q=is%3Aissue+is%3Aclosed)\n[![Open Pulls](https://img.shields.io/github/issues-pr-raw/0xTheProDev/setup-js?style=for-the-badge)](https://github.com/0xTheProDev/setup-js/pulls)\n[![Closed Pulls](https://img.shields.io/github/issues-pr-closed-raw/0xTheProDev/setup-js?style=for-the-badge)](https://github.com/0xTheProDev/setup-js/pulls?q=is%3Apr+is%3Aclosed)\n[![Contributors](https://img.shields.io/github/contributors/0xTheProDev/setup-js?style=for-the-badge)](https://github.com/0xTheProDev/setup-js/graphs/contributors)\n[![Activity](https://img.shields.io/github/last-commit/0xTheProDev/setup-js?style=for-the-badge\u0026label=most%20recent%20activity)](https://github.com/0xTheProDev/setup-js/pulse)\n\n## Description\n\nGithub Action to Setup Workspace with appropriate Runtime and Package Manager, along with Project dependencies for JavaScript and TypeScript projects.\n\n## Usage\n\n- **Setup Basic NPM workspace:**\n\n```yaml\n---\nname: Test\n\non:\n  push:\n    branches:\n      - main\n  pull_request:\n  workflow_dispatch:\n\nconcurrency: ${{ github.workflow }}-${{ github.ref }}\n\npermissions:\n  contents: read\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4\n\n      - name: Setup Workspace\n        uses: 0xTheProDev/setup-js@v1.3\n```\n\n- **Setup Specific Node Version (v22.x):**\n\n```yaml\n---\nname: Test\n\non:\n  push:\n    branches:\n      - main\n  pull_request:\n  workflow_dispatch:\n\nconcurrency: ${{ github.workflow }}-${{ github.ref }}\n\npermissions:\n  contents: read\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4\n\n      - name: Setup Workspace\n        uses: 0xTheProDev/setup-js@v1.3\n        with:\n          version: 22.x\n```\n\n- **Setup Specific Node Version (read from .nvmrc):**\n\n```yaml\n---\nname: Test\n\non:\n  push:\n    branches:\n      - main\n  pull_request:\n  workflow_dispatch:\n\nconcurrency: ${{ github.workflow }}-${{ github.ref }}\n\npermissions:\n  contents: read\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4\n\n      - name: Setup Workspace\n        uses: 0xTheProDev/setup-js@v1.3\n        with:\n          version-file: .nvmrc\n```\n\n- **Setup Yarn Workspace:**\n\n```yaml\n---\nname: Test\n\non:\n  push:\n    branches:\n      - main\n  pull_request:\n  workflow_dispatch:\n\nconcurrency: ${{ github.workflow }}-${{ github.ref }}\n\npermissions:\n  contents: read\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4\n\n      - name: Setup Workspace\n        uses: 0xTheProDev/setup-js@v1.3\n        with:\n          cache: yarn\n```\n\n- **Setup Pnpm Workspace:**\n\n```yaml\n---\nname: Test\n\non:\n  push:\n    branches:\n      - main\n  pull_request:\n  workflow_dispatch:\n\nconcurrency: ${{ github.workflow }}-${{ github.ref }}\n\npermissions:\n  contents: read\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4\n\n      - name: Setup Workspace\n        uses: 0xTheProDev/setup-js@v1.3\n        with:\n          cache: pnpm\n```\n\n- **Setup Bun Workspace (only Package Manager):**\n\n```yaml\n---\nname: Test\n\non:\n  push:\n    branches:\n      - main\n  pull_request:\n  workflow_dispatch:\n\nconcurrency: ${{ github.workflow }}-${{ github.ref }}\n\npermissions:\n  contents: read\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4\n\n      - name: Setup Workspace\n        uses: 0xTheProDev/setup-js@v1.3\n        with:\n          cache: bun\n```\n\n- **Setup Specific Bun Version (v1.x, only Package Manager):**\n\n```yaml\n---\nname: Test\n\non:\n  push:\n    branches:\n      - main\n  pull_request:\n  workflow_dispatch:\n\nconcurrency: ${{ github.workflow }}-${{ github.ref }}\n\npermissions:\n  contents: read\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4\n\n      - name: Setup Workspace\n        uses: 0xTheProDev/setup-js@v1.3\n        with:\n          cache: bun\n          cache-version: 1.x\n```\n\n- **Setup Specific Bun Version (read from .bun-version, only Package Manager):**\n\n```yaml\n---\nname: Test\n\non:\n  push:\n    branches:\n      - main\n  pull_request:\n  workflow_dispatch:\n\nconcurrency: ${{ github.workflow }}-${{ github.ref }}\n\npermissions:\n  contents: read\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4\n\n      - name: Setup Workspace\n        uses: 0xTheProDev/setup-js@v1.3\n        with:\n          cache: bun\n          cache-version-file: .bun-version\n```\n\n- **Setup Bun Workspace:**\n\n```yaml\n---\nname: Test\n\non:\n  push:\n    branches:\n      - main\n  pull_request:\n  workflow_dispatch:\n\nconcurrency: ${{ github.workflow }}-${{ github.ref }}\n\npermissions:\n  contents: read\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4\n\n      - name: Setup Workspace\n        uses: 0xTheProDev/setup-js@v1.3\n        with:\n          runtime: bun\n```\n\n- **Setup Specific Bun Version (v1.x):**\n\n```yaml\n---\nname: Test\n\non:\n  push:\n    branches:\n      - main\n  pull_request:\n  workflow_dispatch:\n\nconcurrency: ${{ github.workflow }}-${{ github.ref }}\n\npermissions:\n  contents: read\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4\n\n      - name: Setup Workspace\n        uses: 0xTheProDev/setup-js@v1.3\n        with:\n          runtime: bun\n          version: 1.x\n```\n\n- **Setup Specific Bun Version (read from .bun-version):**\n\n```yaml\n---\nname: Test\n\non:\n  push:\n    branches:\n      - main\n  pull_request:\n  workflow_dispatch:\n\nconcurrency: ${{ github.workflow }}-${{ github.ref }}\n\npermissions:\n  contents: read\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4\n\n      - name: Setup Workspace\n        uses: 0xTheProDev/setup-js@v1.3\n        with:\n          runtime: bun\n          version-file: .bun-version\n```\n\n## Reporting a Bug\n\nHead on to [**Discussion**](https://github.com/0xTheProDev/setup-js/discussions) section to report a bug or to ask for any feature. Feel to add your queries about using this library as well under _Q \u0026 A_ section of it. Remember, do not create any Issues by yourself, maintainers of this repository will open one if deemed necessary.\n\n## Changelog\n\nSee [CHANGELOG](https://github.com/0xTheProDev/setup-js/blob/main/.github/CHANGELOG.md) for more details on what has been changed in the latest release.\n\n## Contributing\n\nSee [Contributing Guidelines](https://github.com/0xTheProDev/setup-js/blob/main/.github/CONTRIBUTING.md).\n\n## License\n\nThis project is licensed under the terms of the MIT license, see [LICENSE](https://github.com/0xTheProDev/setup-js/blob/main/LICENSE) for more details.\n\n\u003ca href=\"https://github.com/0xTheProDev\"\u003e\n  \u003cimg src=\".github/assets/the-pro-dev-original.png\" alt=\"The Pro Dev\" height=\"120\" width=\"120\"/\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xtheprodev%2Fsetup-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xtheprodev%2Fsetup-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xtheprodev%2Fsetup-js/lists"}