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