Skip to content

Commit

Permalink
alter check nv instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Simek committed Dec 16, 2024
1 parent 17ef117 commit 300adb8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ env:
NODE_ENV: production
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
FILE_ID: zHeGLN45wIgf39kqdvKpoj

on:
push:
Expand Down Expand Up @@ -32,9 +33,6 @@ jobs:
run: yarn install --immutable
- name: 🚨 Lint code
run: yarn lint --max-warnings 0
- name: 🔧 Prepare icons fetch
working-directory: packages/styleguide-icons
run: echo "FILE_ID=zHeGLN45wIgf39kqdvKpoj" >> .env
- name: 📦️ Build packages
env:
FIGMA_TOKEN: ${{ secrets.FIGMA_TOKEN }}
Expand Down
12 changes: 9 additions & 3 deletions packages/styleguide-icons/check-env.sh
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

0 comments on commit 300adb8

Please sign in to comment.