Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix

Richie McIlroyb6284cbd3f04
diff --git a/.github/actions/setup-js/action.yml b/.github/actions/setup-js/action.yml
index 2074692fd..6494da0a1 100644
--- a/.github/actions/setup-js/action.yml
+++ b/.github/actions/setup-js/action.yml
@@ -16,4 +16,14 @@ runs:
- name: Install frontend dependencies
shell: bash
- run: pnpm install
+ run: |
+ set -euo pipefail
+ for attempt in 1 2 3; do
+ if pnpm install; then
+ exit 0
+ fi
+ if [[ "$attempt" == "3" ]]; then
+ exit 1
+ fi
+ sleep $((attempt * 30))
+ done