Browse Source

MOAR deploy fixes

bubble
Kyle Shockey 7 years ago
parent
commit
b289d5992a
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      swagger-ui-dist-package/deploy.sh

+ 2
- 2
swagger-ui-dist-package/deploy.sh View File

@@ -7,12 +7,12 @@ cd "${0%/*}"
UI_VERSION=$(node -p "require('../package.json').version")

# Replace our version placeholder with UI's version
sed -i '' "s|\$\$VERSION|$UI_VERSION|g" package.json
sed -i "s|\$\$VERSION|$UI_VERSION|g" package.json

# Copy UI's dist files to our directory
cp ../dist/* .

if [ $PUBLISH_DIST -eq "true" ] || [ $TRAVIS -eq "true" ] ; then
if [ "$PUBLISH_DIST" = "true" ] || [ "$TRAVIS" = "true" ] ; then
npm publish .
else
npm pack .


Loading…
Cancel
Save