Skip to content

Commit 38b9f6d

Browse files
committed
update upload.sh
1 parent 1fc23e6 commit 38b9f6d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ci/cpu/upload.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ twine upload --skip-existing -u ${TWINE_USERNAME:-rapidsai} dist/*
5454
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc
5555
if [[ "$BUILD_MODE" == "branch" && "${SOURCE_BRANCH}" != 'main' ]]; then
5656
echo "Nightly build, publishing to npm with nightly tag"
57+
# Updates package.json version before publishing since previous publications can't be overwritten
58+
npm version --no-git-tag-version $(git describe --tags)
5759
npm publish --tag=nightly
5860
else
5961
npm publish

0 commit comments

Comments
 (0)