ft-interactive / starter-kit

A template for IG pages
65 stars 15 forks source link

Use version 2.0 explicitly of CircleCI config #282

Closed joannaskao closed 3 years ago

joannaskao commented 3 years ago

Without using 2.0 explicitly, CircleCI now seems to be defaulting potentially to a newer version of the config, like 2.1? We got an odd error on Fan's new project, which said...

#!/bin/bash -eo pipefail
if [ ! -f "package.json" ]; then
  echo
  echo "---"
  echo "Unable to find your package.json file. Did you forget to set the app-dir parameter?"
  echo "---"
  echo
  echo "Current directory: $(pwd)"
  echo
  echo
  echo "List directory: "
  echo
  ls
  exit 1
fi

... and I think the app-dir parameter is new (maybe???)

Circle seems to like it much better when using 2.0 in the config, so hopefully this solves it for other things going forward.