-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
if [ ! -f ./.env ]; then | ||
echo "⚠️ You do not have packages/styleguide-icons/.env file. Please create it from packages/styleguide-icons/.env.example and fill it with your credentials. Instead, bundling a stub for @expo/stylguide-icons that is empty. Read the README.md in packages/styleguide-icons to build the iconset." | ||
if [ -z "${FIGMA_TOKEN}" ] && [ ! -f ./.env ]; then | ||
echo "⚠️ You do not have packages/styleguide-icons/.env file or correct environment variables set. | ||
Please create it from packages/styleguide-icons/.env.example and fill it with your credentials. | ||
Instead, bundling a stub for @expo/styleguide-icons that is empty. | ||
Read the README.md in packages/styleguide-icons to build the icon set. | ||
" | ||
yarn build-stub && exit 0 | ||
else | ||
yarn build-icons && exit 0 | ||
fi | ||
fi |