From 4f33dab4000e149ac68232d83c359b5c00c6a78d Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Thu, 16 Nov 2023 10:40:44 +0100 Subject: [PATCH] Hardcoded registry URL for publishing package refs https://ghost.slack.com/archives/C02G9E68C/p1700068750858149 - it seems that having `npm publish` in `postship` gets rewritten by yarn to `yarn publish`, which will use the yarnpkg.com registry and not the npm registry which we prefer - the apparent best fix for this is to hardcode the registry as done in this commit --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 43dde723..5b80cc7a 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,9 @@ "type": "git", "url": "git@github.com:TryGhost/gscan.git" }, + "publishConfig": { + "registry": "https://registry.npmjs.org/" + }, "engines": { "node": "^14.18.0 || ^16.13.0 || ^18.12.1" },