Skip to content

Commit fe99aac

Browse files
committed
feat(npm): use DEV_PACKAGE_NAME for development
1 parent 03e0bda commit fe99aac

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ci/steps/publish-npm.sh

+6
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,15 @@ main() {
112112
# Source: https://github.com/actions/checkout/issues/58#issuecomment-614041550
113113
PR_NUMBER=$(echo "$GITHUB_REF" | awk 'BEGIN { FS = "/" } ; { print $3 }')
114114
NPM_VERSION="$VERSION-$PR_NUMBER-$COMMIT_SHA"
115+
DEV_PACKAGE_NAME="@coder/code-server-pr"
115116
# This means the npm version will be tagged with "<pr number>"
116117
# and installed when a user runs `yarn install code-server@<pr number>`
117118
NPM_TAG="$PR_NUMBER"
119+
# Use the development package name
120+
# This is so we don't clutter the code-server versions on npm
121+
# with development versions.
122+
# NOTE: Requires npm Version 7.x or higher
123+
npm pkg set name="$DEV_PACKAGE_NAME"
118124
fi
119125

120126
echo "using tag: $NPM_TAG"

0 commit comments

Comments
 (0)