From 514ec66bf2f572e6d07851f49431c133ffbc68e4 Mon Sep 17 00:00:00 2001 From: Jamie Cansdale Date: Fri, 6 Nov 2020 14:54:57 +0000 Subject: [PATCH 1/3] Simplify repository element to use https URL --- .../configuring-npm-for-use-with-github-packages.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/content/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages.md b/content/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages.md index c20f4464fadb..445b70f075a5 100644 --- a/content/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages.md +++ b/content/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages.md @@ -125,11 +125,7 @@ To ensure the repository's URL is correct, replace REPOSITORY with the name of t {% 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. ```shell -"repository" : { - "type" : "git", - "url": "ssh://git@{% if currentVersion == "free-pro-team@latest" %}github.com{% else %}HOSTNAME{% endif %}/OWNER/REPOSITORY.git", - "directory": "packages/name" - }, +"repository" : "https://{% if currentVersion == "free-pro-team@latest" %}github.com{% else %}HOSTNAME{% endif %}/OWNER/REPOSITORY", ``` ### Installing a package From c3616f2817f94ced1359a776a71719313b86b597 Mon Sep 17 00:00:00 2001 From: Jamie Cansdale Date: Fri, 6 Nov 2020 17:56:48 +0000 Subject: [PATCH 2/3] Update content/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages.md --- .../configuring-npm-for-use-with-github-packages.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages.md b/content/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages.md index 445b70f075a5..4acf318506d4 100644 --- a/content/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages.md +++ b/content/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages.md @@ -122,7 +122,7 @@ To publish multiple packages to the same repository, you can include the URL of To ensure the repository's URL is correct, replace REPOSITORY with the name of the repository containing the package you want to publish, and OWNER with the name of the user or organization account on {% data variables.product.prodname_dotcom %} that owns the repository. -{% 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. +{% data variables.product.prodname_registry %} will match the repository based on the URL, instead of based on the package name. ```shell "repository" : "https://{% if currentVersion == "free-pro-team@latest" %}github.com{% else %}HOSTNAME{% endif %}/OWNER/REPOSITORY", From a73479193b2287ea49fe19ab44546d0895cf0a1f Mon Sep 17 00:00:00 2001 From: Jamie Cansdale Date: Mon, 9 Nov 2020 09:51:06 +0000 Subject: [PATCH 3/3] Make spacing of ":" consistent with "publishConfig" --- .../configuring-npm-for-use-with-github-packages.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages.md b/content/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages.md index 4acf318506d4..3d3281a921bc 100644 --- a/content/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages.md +++ b/content/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages.md @@ -125,7 +125,7 @@ To ensure the repository's URL is correct, replace REPOSITORY with the name of t {% data variables.product.prodname_registry %} will match the repository based on the URL, instead of based on the package name. ```shell -"repository" : "https://{% if currentVersion == "free-pro-team@latest" %}github.com{% else %}HOSTNAME{% endif %}/OWNER/REPOSITORY", +"repository":"https://{% if currentVersion == "free-pro-team@latest" %}github.com{% else %}HOSTNAME{% endif %}/OWNER/REPOSITORY", ``` ### Installing a package