Fix: NPM Package publishing (#62243)

* move packed packages to npm-artifacts dir

* remove unnecessary any to trigger canary build

* update canary script to create dir only if it does not exist

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
Jack Westbrook
2023-01-26 16:18:05 +00:00
committed by GitHub
co-authored by Ashley Harrison
parent 641a7182e3
commit 5050822b9a
4 changed files with 10 additions and 7 deletions
+6 -2
View File
@@ -15,10 +15,14 @@ else
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
if [ ! -d './npm-artifacts' ]; then
mkdir './npm-artifacts'
fi
echo $'\nPacking packages'
yarn packages:pack
echo $'\nPublishing packages'
yarn packages:publishCanary
fi
for file in ./npm-artifacts/*.tgz; do npm publish "$file" --tag canary; done
fi