Skip to content

Commit eec6870

Browse files
committed
Fixing bug
1 parent 3e03621 commit eec6870

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

scripts/publish.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ echo "Ran tests."
9393
if [[ $VERSION == "preview" ]]; then
9494
echo "Making a preview version..."
9595
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}
9797
NEW_VERSION=$(jq -r ".version" package.json)
9898
echo "Made a preview version."
9999
else
@@ -112,13 +112,7 @@ cat CHANGELOG.md >> "${RELEASE_NOTES_FILE}"
112112
echo "Made the release notes."
113113

114114
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
122116
echo "Published to npm."
123117

124118
if [[ $VERSION != "preview" ]]; then

0 commit comments

Comments
 (0)