Skip to content

Commit 5d4bf19

Browse files
authored
Fix: Canary NPM publishing (grafana#66734)
fix(npm-publishing): strip protocol from registry so npm can auth correctly
1 parent e97befa commit 5d4bf19

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/grafana-ui/.storybook/main.ts

-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ const mainConfig: StorybookConfig = {
100100
savePropValueAsString: true,
101101
},
102102
},
103-
104103
webpackFinal: async (config) => {
105104
// expose jquery as a global so jquery plugins don't break at runtime.
106105
config.module?.rules?.push({

scripts/publish-npm-packages.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ done
3636

3737
echo "Starting to release $dist_tag version"
3838

39-
echo "$registry/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
39+
registry_without_protocol=${registry#*:}
40+
41+
echo "$registry_without_protocol/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
4042

4143
# Loop over .tar files in directory and publish them to npm registry
4244
for file in ./npm-artifacts/*.tgz; do

0 commit comments

Comments
 (0)