We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03e0bda commit fe99aacCopy full SHA for fe99aac
ci/steps/publish-npm.sh
@@ -112,9 +112,15 @@ main() {
112
# Source: https://github.com/actions/checkout/issues/58#issuecomment-614041550
113
PR_NUMBER=$(echo "$GITHUB_REF" | awk 'BEGIN { FS = "/" } ; { print $3 }')
114
NPM_VERSION="$VERSION-$PR_NUMBER-$COMMIT_SHA"
115
+ DEV_PACKAGE_NAME="@coder/code-server-pr"
116
# This means the npm version will be tagged with "<pr number>"
117
# and installed when a user runs `yarn install code-server@<pr number>`
118
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"
124
fi
125
126
echo "using tag: $NPM_TAG"
0 commit comments