{"id":21491637,"url":"https://github.com/jaid/action-npm-install","last_synced_at":"2025-07-15T17:32:38.032Z","repository":{"id":42461383,"uuid":"222732600","full_name":"Jaid/action-npm-install","owner":"Jaid","description":"GitHub Action for installing dependencies from package.json after checkout.","archived":false,"fork":false,"pushed_at":"2023-03-02T23:50:44.000Z","size":4815,"stargazers_count":9,"open_issues_count":6,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-22T03:44:33.069Z","etag":null,"topics":["action","actions","dependencies","dependency","github-action","github-actions","install","node","node-modules","nodejs","npm","pnpm","utility","workflow","yarn"],"latest_commit_sha":null,"homepage":"https://github.com/Jaid/action-npm-install","language":"JavaScript","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/Jaid.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"license.txt","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},"funding":{"github":"Jaid","custom":"https://twitch.tv/products/jaidchen"}},"created_at":"2019-11-19T15:50:04.000Z","updated_at":"2023-10-17T14:44:10.000Z","dependencies_parsed_at":"2024-06-19T00:06:58.132Z","dependency_job_id":"fcb4e606-a076-4ccf-adce-65c0864f6f7c","html_url":"https://github.com/Jaid/action-npm-install","commit_stats":{"total_commits":149,"total_committers":2,"mean_commits":74.5,"dds":0.2214765100671141,"last_synced_commit":"1183d5ed5ff562bffe315c21a17bee522d56d008"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaid%2Faction-npm-install","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaid%2Faction-npm-install/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaid%2Faction-npm-install/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaid%2Faction-npm-install/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jaid","download_url":"https://codeload.github.com/Jaid/action-npm-install/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225878824,"owners_count":17538524,"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","dependencies","dependency","github-action","github-actions","install","node","node-modules","nodejs","npm","pnpm","utility","workflow","yarn"],"created_at":"2024-11-23T15:17:13.308Z","updated_at":"2024-11-23T15:17:14.418Z","avatar_url":"https://github.com/Jaid.png","language":"JavaScript","funding_links":["https://github.com/sponsors/Jaid","https://twitch.tv/products/jaidchen","https://github.com/sponsors/jaid"],"categories":[],"sub_categories":[],"readme":"# action-npm-install\n\n\n\u003ca href=\"https://raw.githubusercontent.com/jaid/action-npm-install/master/license.txt\"\u003e\u003cimg src=\"https://img.shields.io/github/license/jaid/action-npm-install?style=flat-square\" alt=\"License\"/\u003e\u003c/a\u003e \u003ca href=\"https://github.com/sponsors/jaid\"\u003e\u003cimg src=\"https://img.shields.io/badge/\u003c3-Sponsor-FF45F1?style=flat-square\" alt=\"Sponsor action-npm-install\"/\u003e\u003c/a\u003e  \n\u003ca href=\"https://actions-badge.atrox.dev/jaid/action-npm-install/goto\"\u003e\u003cimg src=\"https://img.shields.io/endpoint.svg?style=flat-square\u0026url=https%3A%2F%2Factions-badge.atrox.dev%2Fjaid%2Faction-npm-install%2Fbadge\" alt=\"Build status\"/\u003e\u003c/a\u003e \u003ca href=\"https://github.com/jaid/action-npm-install/commits\"\u003e\u003cimg src=\"https://img.shields.io/github/commits-since/jaid/action-npm-install/v1.2.4?style=flat-square\u0026logo=github\" alt=\"Commits since v1.2.4\"/\u003e\u003c/a\u003e \u003ca href=\"https://github.com/jaid/action-npm-install/commits\"\u003e\u003cimg src=\"https://img.shields.io/github/last-commit/jaid/action-npm-install?style=flat-square\u0026logo=github\" alt=\"Last commit\"/\u003e\u003c/a\u003e \u003ca href=\"https://github.com/jaid/action-npm-install/issues\"\u003e\u003cimg src=\"https://img.shields.io/github/issues/jaid/action-npm-install?style=flat-square\u0026logo=github\" alt=\"Issues\"/\u003e\u003c/a\u003e  \n\n**GitHub Action for installing Node dependencies from package.json with the correct package manager automatically selected.**\n\n\nThis is usually needed to prepare for other steps in a GitHub Actions workflow.\n\n\n\n\n\n## Example\n\nExample workflow that runs whenever commits are pushed on branch `master`.\n\n`.github/workflows/example.yml`\n```yaml\nname: Try installing Node dependencies\non:\n  push:\n    branches: [master]\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - name: actions/checkout\n        uses: actions/checkout@v2.0.0\n      - name: actions/setup-node\n        uses: actions/setup-node@v1.4.1\n        with:\n          node-version: \"13.9.0\"\n      - name: npm install\n        uses: jaid/action-npm-install@v1.2.1\n```\n\n\n\n\n\n\n\n## Options\n\n\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003cth\u003e\u003c/th\u003e\n\u003cth\u003eDefault\u003c/th\u003e\n\u003cth\u003eInfo\u003c/th\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003enodeEnv\u003c/td\u003e\n\u003ctd\u003edevelopment\u003c/td\u003e\n\u003ctd\u003eNODE_ENV setting for installing execution (affects the amount of dependencies installed, but I would recommend keeping development in any case).\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003epackageManager\u003c/td\u003e\n\u003ctd\u003eauto\u003c/td\u003e\n\u003ctd\u003eCan be \"npm\", \"yarn\", \"pnpm\" or \"auto\". \"auto\" will determine the package manager by looking into the repo's files. This is very accurate, so you normally don't want to change this.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eskipIfNodeModulesExists\u003c/td\u003e\n\u003ctd\u003efalse\u003c/td\u003e\n\u003ctd\u003eIf true and node_modules folder already exists, this action will be skipped assuming npm install is not required.\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n\n\n\n\n\n\n\n\n\n\n## Development\n\n\n\nSetting up:\n```bash\ngit clone git@github.com:jaid/action-npm-install.git\ncd action-npm-install\nnpm install\n```\n\n\n## License\n[MIT License](https://raw.githubusercontent.com/jaid/action-npm-install/master/license.txt)  \nCopyright © 2020, Jaid \\\u003cjaid.jsx@gmail.com\u003e (https://github.com/jaid)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaid%2Faction-npm-install","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaid%2Faction-npm-install","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaid%2Faction-npm-install/lists"}