File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ echo "Ran tests."
93
93
if [[ $VERSION == " preview" ]]; then
94
94
echo " Making a preview version..."
95
95
sanitized_branch=$( echo " $BRANCH " | sed ' s/[^a-zA-Z0-9]/-/g' )
96
- npm version prerelease --preid=preview- ${sanitized_branch}
96
+ npm version prerelease --preid=${sanitized_branch}
97
97
NEW_VERSION=$( jq -r " .version" package.json)
98
98
echo " Made a preview version."
99
99
else
@@ -112,13 +112,7 @@ cat CHANGELOG.md >> "${RELEASE_NOTES_FILE}"
112
112
echo " Made the release notes."
113
113
114
114
echo " Publishing to npm..."
115
- if [[ $VERSION == " preview" ]]; then
116
- # Note: we publish with a dynamic tag so that this does not become the "latest" version
117
- sanitized_branch=$( echo " $BRANCH " | sed ' s/[^a-zA-Z0-9]/-/g' )
118
- npx
[email protected] --before-script ./scripts/clean-shrinkwrap.sh --tag=preview-
${sanitized_branch}
119
- else
120
- npx
[email protected] --before-script ./scripts/clean-shrinkwrap.sh
121
- fi
115
+ npx
[email protected] --before-script ./scripts/clean-shrinkwrap.sh
122
116
echo " Published to npm."
123
117
124
118
if [[ $VERSION != " preview" ]]; then
You can’t perform that action at this time.
0 commit comments