1
0

update-dependencies 920 B

12345678910111213141516171819202122232425262728
  1. // #!/bin/bash
  2. // #/ Usage: script/update-dependencies
  3. // #/ Create a branch to update a dependency.
  4. // # Delete update-dependencies branch if it exists
  5. // if git branch | grep -q "update-dependencies"; then
  6. // echo "Deleting update-dependencies branch 🗑"
  7. // git branch -D update-dependencies
  8. // echo "Branch deleted 🎉"
  9. // fi
  10. // # Create update-dependencies branch
  11. // echo "Creating update-dependencies branch 🌱"
  12. // git checkout -b update-dependencies
  13. // echo "Branch created 🎉"
  14. // # Update dependencies in package.json
  15. // echo "Updating dependencies in package.json 📦"
  16. // pnpm update --interactive --recursive --latest
  17. // # Clean up pnpm-lock.yaml file and install dependencies
  18. // script/clean && pnpm install
  19. // # Git operations
  20. // git add -A
  21. // git commit -am "chore: update dependencies 📦"
  22. // git push origin update-dependencies
  23. // gh pr create --fill
  24. // echo "Dependencies updated 🎉"