Skip to content

Commit 514ec66

Browse files
authored
Simplify repository element to use https URL
1 parent 4a5fddd commit 514ec66

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

content/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,7 @@ To ensure the repository's URL is correct, replace REPOSITORY with the name of t
125125
{% data variables.product.prodname_registry %} will match the repository based on the URL, instead of based on the package name. If you store the *package.json* file outside the root directory of your repository, you can use the `directory` field to specify the location where {% data variables.product.prodname_registry %} can find the *package.json* files.
126126
127127
```shell
128-
"repository" : {
129-
"type" : "git",
130-
"url": "ssh://git@{% if currentVersion == "free-pro-team@latest" %}github.com{% else %}<em>HOSTNAME</em>{% endif %}/<em>OWNER</em>/<em>REPOSITORY</em>.git",
131-
"directory": "packages/name"
132-
},
128+
"repository" : "https://{% if currentVersion == "free-pro-team@latest" %}github.com{% else %}<em>HOSTNAME</em>{% endif %}/<em>OWNER</em>/<em>REPOSITORY</em>",
133129
```
134130
135131
### Installing a package

0 commit comments

Comments
 (0)