From df51205ef130178d7a68ab618fb497706f39c629 Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Thu, 27 Jun 2024 07:45:26 -0600 Subject: [PATCH] fix some things --- .github/workflows/validate.yml | 4 +++- epicshop/update-deps.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index d4c7e9fc..83f9e0ea 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -39,7 +39,9 @@ jobs: name: 🚀 Deploy runs-on: ubuntu-latest # only deploy main branch on pushes - if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }} + if: + ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' && + github.repository_owner == 'epicweb-dev' }} steps: - name: ⬇️ Checkout repo diff --git a/epicshop/update-deps.sh b/epicshop/update-deps.sh index c5679a72..dc4098b5 100755 --- a/epicshop/update-deps.sh +++ b/epicshop/update-deps.sh @@ -1,5 +1,7 @@ npx npm-check-updates --dep prod,dev --upgrade --root -rm -rf node_modules package-lock.json ./exercises/**/node_modules +cd epicshop && npx npm-check-updates --dep prod,dev --upgrade --root +cd .. +rm -rf node_modules package-lock.json ./epicshop/package-lock.json ./epicshop/node_modules ./exercises/**/node_modules npm install npm run setup npm run typecheck