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:
co-authored by
Ashley Harrison
parent
641a7182e3
commit
5050822b9a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user