{"id":22973840,"url":"https://github.com/get-bridge/npm-login","last_synced_at":"2025-08-13T14:33:28.537Z","repository":{"id":38353127,"uuid":"333569508","full_name":"get-bridge/npm-login","owner":"get-bridge","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-05T16:11:43.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2023-03-04T04:29:25.332Z","etag":null,"topics":["actions","github-actions"],"latest_commit_sha":null,"homepage":"https://github.com/instructure-bridge/npm-login","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/get-bridge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-27T21:48:31.000Z","updated_at":"2022-04-21T15:17:13.000Z","dependencies_parsed_at":"2023-02-04T06:45:56.386Z","dependency_job_id":null,"html_url":"https://github.com/get-bridge/npm-login","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/get-bridge%2Fnpm-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/get-bridge%2Fnpm-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/get-bridge%2Fnpm-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/get-bridge%2Fnpm-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/get-bridge","download_url":"https://codeload.github.com/get-bridge/npm-login/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229767237,"owners_count":18121043,"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","github-actions"],"created_at":"2024-12-14T23:58:58.681Z","updated_at":"2024-12-14T23:58:59.217Z","avatar_url":"https://github.com/get-bridge.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# npm-login\n\n![ci](https://github.com/get-bridge/npm-login/workflows/ci/badge.svg)\n![tag](https://img.shields.io/github/v/tag/get-bridge/npm-login?sort=semver)\n\n**Please note: This action is deprecated and should no longer be used. Please, migrate your workflows to the [actions/setup-node](https://github.com/actions/setup-node) action. To authenticate with `actions/setup-node` use the following general approach which has been adapted from the official [documentation](https://github.com/actions/setup-node/blob/270253e841af726300e85d718a5f606959b2903c/docs/advanced-usage.md#use-private-packages):**\n\n    - uses: actions/checkout@v2\n\n    - uses: actions/setup-node@v2\n      with:\n        registry-url: http://npm.pkg.github.com\n\n    # Skip post-install scripts here, as a malicious script could steal NODE_AUTH_TOKEN.\n    - run: npm install --ignore-scripts\n      env:\n        NODE_AUTH_TOKEN: ${{ secrets.YOUR_SEKRET_TOKEN_HERE }}\n\n    # `npm rebuild` will run all those post-install scripts for us.\n    - run: npm rebuild \u0026\u0026 npm run prepare --if-present\n\nThe `npm-login` action will setup the local npm configuration to be\nable to connect to a specific scope.\n\n## Usage\n\nTypical usage of this action looks like this:\n\n    - uses: get-bridge/npm-login@v1\n      with:\n        email: ${{ secrets.NPM_EMAIL }}\n        password: ${{ secrets.NPM_PASSWORD }}\n        registry: //some-registry/\n        scope: some-scope\n        username: ${{ secrets.SCOPE }}\n\n## Customizing\n\n### inputs\n\nFollowing inputs can be used as `step.with` keys or via the corresponding environment variable. The `steps.with` values will take precidence over equivalent environment variables.\n\n| Name        | env var              | Required  | Default  | Type    | Description                         |\n|-------------|----------------------|-----------|----------|---------|-------------------------------------|\n| `email`     | `NPM_LOGIN_EMAIL`    | true      |          | String  | Email associated with the username. |\n| `password`  | `NPM_LOGIN_PASSWORD` | true      |          | String  | Password for authentication. |\n| `protocol`  |                      | false     | `https`  | String  | Set the protocol (e.g. `http`,`https`) |\n| `registry`  | `NPM_LOGIN_REGISTRY` | true      |          | String  | Registry to use for the desired scope. Must leave off preceeding protocol and include trailing slash like `//example.com/` |\n| `scope`     | `NPM_LOGIN_SCOPE `   | true      |          | String  | The desired scope. Leave off the preceeding `@`. (e.g. `myscope`) |\n| `username`  | `NPM_LOGIN_USERNAME` | true      |          | String  | Username for authentication. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fget-bridge%2Fnpm-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fget-bridge%2Fnpm-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fget-bridge%2Fnpm-login/lists"}