{"id":28516211,"url":"https://github.com/panates/gh-setup-node","last_synced_at":"2026-03-12T08:20:44.602Z","repository":{"id":283071855,"uuid":"950572809","full_name":"panates/gh-setup-node","owner":"panates","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-25T08:05:44.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-25T08:39:24.739Z","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/panates.png","metadata":{"files":{"readme":"README.md","changelog":"changelog-config.json","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-18T11:18:40.000Z","updated_at":"2025-09-25T08:05:48.000Z","dependencies_parsed_at":"2025-03-18T14:32:52.454Z","dependency_job_id":"3ae938d5-2ae7-467e-9004-b662b9aec175","html_url":"https://github.com/panates/gh-setup-node","commit_stats":null,"previous_names":["panates/gh-setup-node","panates/ghac-setup-node"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/panates/gh-setup-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panates%2Fgh-setup-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panates%2Fgh-setup-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panates%2Fgh-setup-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panates%2Fgh-setup-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/panates","download_url":"https://codeload.github.com/panates/gh-setup-node/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panates%2Fgh-setup-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28918221,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T19:10:10.838Z","status":"ssl_error","status_checked_at":"2026-01-30T19:06:40.573Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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"}},"keywords":[],"created_at":"2025-06-09T03:32:52.652Z","updated_at":"2026-01-30T19:33:35.913Z","avatar_url":"https://github.com/panates.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setup NodeJS Environment Action\n\nThis GitHub Action sets up a Node.js environment by installing Node.js, checking out the repository, installing\ndependencies, and managing caching.\n\n## 🚀 Features\n\n- Installs a specified version of Node.js\n- Checks out the repository\n- Supports caching of `node_modules`\n- Creates an `.npmrc` file for GitHub Packages\n- Installs dependencies\n\n## 📌 Usage\n\n```yaml\njobs:\n  setup-node-env:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Setup NodeJS Environment\n        uses: panates/gh-setup-node@v1\n        with:\n          PERSONAL_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n          fetch-depth: 0\n          node-version: \"20.18.3\"\n          cache: \"true\"\n          cache-key: \"my-cache-key\"\n          install-deps: \"true\"\n```\n\n## ⚙️ Inputs\n\n| Name                    | Description                                        | Required | Default     |\n|-------------------------|----------------------------------------------------|----------|-------------|\n| `PERSONAL_ACCESS_TOKEN` | GitHub personal access token for authentication    | ✅ Yes    | N/A         |\n| `fetch-depth`           | Number of commits to fetch. `0` means all history. | ❌ No     | `1`         |\n| `node-version`          | Node.js version to install                         | ❌ No     | `\"20.18.3\"` |\n| `cache`                 | Enable or disable caching of `node_modules`        | ❌ No     | `\"true\"`    |\n| `cache-key`             | Unique cache key for caching                       | ❌ No     | `\"\"`        |\n| `install-deps`          | Install dependencies (`npm install`)               | ❌ No     | `\"true\"`    |\n\n## 📝 Notes\n\n- Ensure that `PERSONAL_ACCESS_TOKEN` has access to GitHub Packages if you're using private repositories.\n- If caching is enabled, it will restore `node_modules` from cache using the specified cache key.\n\n## 📄 License\n\nThis project is licensed under the **MIT License**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanates%2Fgh-setup-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpanates%2Fgh-setup-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanates%2Fgh-setup-node/lists"}