Fix: Canary NPM publishing (#66734)

fix(npm-publishing): strip protocol from registry so npm can auth correctly
This commit is contained in:
Jack Westbrook
2023-04-18 12:00:05 +02:00
committed by GitHub
parent e97befa221
commit 5d4bf19efb
2 changed files with 3 additions and 2 deletions

View File

@@ -100,7 +100,6 @@ const mainConfig: StorybookConfig = {
savePropValueAsString: true,
},
},
webpackFinal: async (config) => {
// expose jquery as a global so jquery plugins don't break at runtime.
config.module?.rules?.push({

View File

@@ -36,7 +36,9 @@ done
echo "Starting to release $dist_tag version"
echo "$registry/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
registry_without_protocol=${registry#*:}
echo "$registry_without_protocol/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
# Loop over .tar files in directory and publish them to npm registry
for file in ./npm-artifacts/*.tgz; do