Skip to content

Commit b47ad11

Browse files
committed
fix: try this
1 parent e18e4cf commit b47ad11

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

ci/steps/publish-npm.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,12 @@ main() {
144144
# This is because npm view won't exit with non-zero so we have
145145
# to check the output.
146146
local hasVersion
147-
hasVersion=$(npm view "code-server@$NPM_VERSION" version)
147+
hasVersion=$(npm view "$PACKAGE_NAME@$NPM_VERSION" version)
148148
if [[ $hasVersion == "$NPM_VERSION" ]]; then
149-
echo "$NPM_VERSION is already published"
149+
echo "$NPM_VERSION is already published under $PACKAGE_NAME"
150150
return
151151
fi
152152

153-
# NOTE@jsjoeio
154-
# There's a strange issue happening with npm complaining
155-
# about the package. This should fix that.
156-
# Source: https://stackoverflow.com/a/66428125/3015595
157-
yarn cache clean --force
158-
159153
# NOTE@jsjoeio
160154
# Since the dev builds are scoped to @coder
161155
# We pass --access public to ensure npm knows it's not private.

0 commit comments

Comments
 (0)