Browse Source

Merge pull request #1151 from transloadit/fix/website-example-numb3rs

Fix version numbers used for website build
Renée Kooi 6 years ago
parent
commit
688631fb1f
1 changed files with 2 additions and 4 deletions
  1. 2 4
      bin/endtoend-build-ci

+ 2 - 4
bin/endtoend-build-ci

@@ -12,12 +12,13 @@ __base="$(basename ${__file} .sh)"
 __root="$(cd "$(dirname "${__dir}")" && pwd)"
 
 VERDACCIO_REGISTRY=http://localhost:4002
+CURRENT_COMMIT="$(git rev-parse HEAD)"
 
 cleanup() {
   rm -rf "${__root}/test/endtoend/node_modules"
   rm -rf "${__root}/test/endtoend/tmp"
   git reset
-  git checkout -- .
+  git checkout $CURRENT_COMMIT
 }
 function on_exit() {
   # revert to public registry
@@ -58,9 +59,6 @@ ENDTOEND=1 lerna publish from-git --yes \
   --no-verify-access \
   --npm-client=npm
 
-# revert version changes
-git checkout -- packages/*/package.json packages/@uppy/*/package.json
-
 # install all packages to the endtoend folder
 # (Don't use the npm cache, don't generate a package-lock, don't save dependencies to any package.json)
 pushd "${__root}/test/endtoend"