Fix: Canary NPM publishing (#66734)

fix(npm-publishing): strip protocol from registry so npm can auth correctly
pull/66825/head
Jack Westbrook 2 years ago committed by GitHub
parent e97befa221
commit 5d4bf19efb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      packages/grafana-ui/.storybook/main.ts
  2. 4
      scripts/publish-npm-packages.sh

@ -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({

@ -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

Loading…
Cancel
Save