{"id":12107269,"name":"0xTheProDev/setup-js","ecosystem":"actions","description":"Setup Workspace with appropriate Runtime and Package Manager for JavaScript Projects.","homepage":"https://github.com/marketplace/actions/setup-javascript-workspace","licenses":"gpl-2.0","normalized_licenses":["GPL-2.0"],"repository_url":"https://github.com/0xTheProDev/setup-js","keywords_array":["actions","bun","github","javascript","nodejs","npm","pnpm","pnpm-workspaces","typescript","yarn","yarn-berry","yarn-workspaces"],"namespace":"0xTheProDev","versions_count":4,"first_release_published_at":"2024-09-18T09:33:20.000Z","latest_release_published_at":"2025-09-10T07:46:56.000Z","latest_release_number":"v1.3","last_synced_at":"2026-03-24T07:03:04.932Z","created_at":"2025-09-16T07:31:17.611Z","updated_at":"2026-03-24T07:03:04.933Z","registry_url":"https://github.com/0xTheProDev/setup-js","install_command":null,"documentation_url":null,"metadata":{"name":"Setup JavaScript Workspace","description":"Setup Workspace with appropriate Runtime and Package Manager for JavaScript Projects.","author":"Progyan Bhattacharya \u003cbprogyan@gmail.com\u003e","inputs":{"always-auth":{"description":"Set always-auth in npmrc.","default":"false"},"runtime":{"description":"JavaScript Runtime to to use. Example: bun, node.","default":"node"},"version":{"description":"Version Spec of the version to use. Examples: 12.x, 10.15.1, \u003e=10.15.0. Default: latest."},"version-file":{"description":"File containing the version Spec of the version to use. Examples: package.json, .nvmrc, .node-version, .bun-version, .tool-versions."},"architecture":{"description":"Target architecture for Node to use. Examples: x86, x64. Will use system architecture by default."},"check-latest":{"description":"Set this option if you want the action to check for the latest available version that satisfies the version spec.","default":"false"},"registry-url":{"description":"Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, and set up auth to read in from env.NODE_AUTH_TOKEN."},"scope":{"description":"Optional scope for authenticating against scoped registries. Will fall back to the repository owner when using the GitHub Packages registry (https://npm.pkg.github.com/)."},"token":{"description":"Used to pull node distributions from node-versions. Since there's a default, this is typically not supplied by the user. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting.","default":"${{ github.server_url == 'https://github.com' \u0026\u0026 github.token || '' }}"},"cache":{"description":"Used to specify a package manager for caching in the default directory. Supported values: npm, yarn, pnpm, bun."},"cache-dependency-path":{"description":"Used to specify the path to a dependency file: package-lock.json, yarn.lock, bun.lockb etc. Supports wildcards or a list of file names for caching multiple dependencies."},"cache-path":{"description":"Used to specify the path to global dependency cache."},"cache-version":{"description":"Version Spec of the package manager version to use. Examples: 1.x, 4.15.1."},"cache-version-file":{"description":"File containing the package manager version Spec of the version to use. Examples: package.json, .yarn-version, .bun-version, .tool-versions."}},"runs":{"using":"composite","steps":[{"if":"${{ inputs.cache == 'pnpm' }}","name":"Install Pnpm","uses":"pnpm/action-setup@v4","with":{"version":"${{ inputs.cache-version }}","dest":"~/setup-pnpm","run_install":false,"package_json_file":"${{ inputs.cache-version-file || 'package.json' }}","standalone":"${{ inputs.runtime != 'node' }}"}},{"if":"${{ inputs.runtime == 'node' }}","name":"Install Node.js","uses":"actions/setup-node@v5","with":{"always-auth":"${{ inputs.always-auth }}","node-version":"${{ inputs.version }}","node-version-file":"${{ inputs.version-file }}","architecture":"${{ inputs.architecture }}","check-latest":"${{ inputs.check-latest }}","registry-url":"${{ inputs.registry-url }}","scope":"${{ inputs.scope }}","token":"${{ inputs.token }}","cache":"${{ inputs.cache != 'bun' \u0026\u0026 inputs.cache || null }}","cache-dependency-path":"${{ inputs.cache != 'bun' \u0026\u0026 inputs.cache-dependency-path || null }}"}},{"if":"${{ inputs.runtime == 'bun' || inputs.cache == 'bun' }}","name":"Install Bun","uses":"oven-sh/setup-bun@v2","with":{"bun-version":"${{ inputs.runtime == 'bun' \u0026\u0026 inputs.version || inputs.cache-version }}","bun-version-file":"${{ inputs.runtime == 'bun' \u0026\u0026 inputs.version-file || inputs.cache-version-file }}","registry-url":"${{ inputs.registry-url }}","scope":"${{ inputs.scope }}","no-cache":"${{ inputs.check-latest }}"}},{"if":"${{ inputs.runtime == 'bun' || inputs.cache == 'bun' }}","name":"Load Dependency Cache (Bun)","uses":"actions/cache@v4","with":{"path":"${{ inputs.cache-path || '~/.bun/install/cache' }}","key":"${{ runner.os }}-bun-${{ hashFiles(inputs.cache-dependency-path || '**/bun.lockb') }}","restore-keys":"${{ runner.os }}-bun-\n"}},{"if":"${{ inputs.runtime == 'bun' || inputs.cache == 'bun' }}","name":"Install Dependencies (Bun)","shell":"bash","run":"bun install --frozen-lockfile\n"},{"if":"${{ inputs.cache == 'pnpm' }}","name":"Install Dependencies (Pnpm)","shell":"bash","run":"pnpm install --frozen-lockfile\n"},{"if":"${{ inputs.cache == 'npm' }}","name":"Install Dependencies (Npm)","shell":"bash","run":"npm ci\n"},{"if":"${{ inputs.cache == 'yarn' }}","name":"Install Dependencies (Yarn)","shell":"bash","run":"IFS='.' read -ra VER \u003c\u003c\u003c $(yarn -v)\nif [ \"${VER[0]}\" = \"1\" ]\nthen\n  yarn install --frozen-lockfile\nelse\n  yarn install --immutable\nfi\n"},{"if":"${{ inputs.registry-url != null }}","name":"Setup Publish Token","shell":"bash","run":"rm -f $GITHUB_WORKSPACE/.npmrc\ncp $NPM_CONFIG_USERCONFIG $GITHUB_WORKSPACE/.npmrc\n"}]},"branding":{"icon":"package","color":"blue"},"default_branch":"main","path":null},"repo_metadata":{"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":"2025-09-10T07:49:42.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-16T07:40:41.739Z","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":"2025-09-10T07:47:06.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":4,"template":false,"template_full_name":null,"purl":"pkg:github/0xTheProDev/setup-js","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","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xTheProDev%2Fsetup-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275773616,"owners_count":25526085,"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","status":"online","status_checked_at":"2025-09-18T02:00:09.552Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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"}},"repo_metadata_updated_at":"2025-09-18T13:29:40.314Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":27.70568146538342,"dependent_packages_count":0.0,"stargazers_count":null,"forks_count":null,"docker_downloads_count":null,"average":13.85284073269171},"purl":"pkg:githubactions/0xTheProDev/setup-js","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/0xTheProDev/setup-js","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/actions/0xTheProDev/setup-js","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/0xTheProDev/setup-js/dependencies","status":null,"funding_links":["https://github.com/sponsors/0xTheProDev"],"critical":null,"issue_metadata":{"last_synced_at":"2025-09-11T13:29:05.614Z","issues_count":1,"pull_requests_count":1,"avg_time_to_close_issue":532.0,"avg_time_to_close_pull_request":490028.0,"issues_closed_count":1,"pull_requests_closed_count":1,"pull_request_authors_count":1,"issue_authors_count":1,"avg_comments_per_issue":0.0,"avg_comments_per_pull_request":0.0,"merged_pull_requests_count":1,"bot_issues_count":0,"bot_pull_requests_count":1,"past_year_issues_count":1,"past_year_pull_requests_count":1,"past_year_avg_time_to_close_issue":532.0,"past_year_avg_time_to_close_pull_request":490028.0,"past_year_issues_closed_count":1,"past_year_pull_requests_closed_count":1,"past_year_pull_request_authors_count":1,"past_year_issue_authors_count":1,"past_year_avg_comments_per_issue":0.0,"past_year_avg_comments_per_pull_request":0.0,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":1,"past_year_merged_pull_requests_count":1,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xTheProDev%2Fsetup-js/issues","maintainers":[{"login":"0xTheProDev","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/0xTheProDev"}],"active_maintainers":[{"login":"0xTheProDev","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/0xTheProDev"}]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/0xTheProDev%2Fsetup-js/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/0xTheProDev%2Fsetup-js/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/0xTheProDev%2Fsetup-js/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/0xTheProDev%2Fsetup-js/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/0xTheProDev%2Fsetup-js/codemeta","maintainers":[]}