| … | … | @@ -1,8 +1,17 @@ |
| 1 | 1 | steps: |
| 2 | 2 | - name: copy-deps |
| 3 | run: > | |
| 4 | cp -r /storage/projects/code/hypercore-kb/hyper-fleeky/hypernote/node_modules . | |
| 5 | && rm -rf node_modules/pear-runtime/node_modules | |
| 3 | run: | | |
| 4 | if [ -d /storage/projects/code/hypercore-kb/hyper-fleeky/hypernote/node_modules ]; then | |
| 5 | SRC=/storage/projects/code/hypercore-kb/hyper-fleeky/hypernote/node_modules | |
| 6 | elif [ -d "$HOME/.local/share/hypernote/node_modules" ]; then | |
| 7 | SRC="$HOME/.local/share/hypernote/node_modules" | |
| 8 | else | |
| 9 | echo "ERROR: No node_modules source found" && exit 1 | |
| 10 | fi | |
| 11 | echo "Copying node_modules from $SRC" | |
| 12 | cp -r "$SRC" . | |
| 13 | rm -rf node_modules/pear-runtime/node_modules | |
| 14 | rm -rf node_modules/bare-sidecar | |
| 6 | 15 | timeout: 120 |
| 7 | 16 | - name: patch-pear-runtime |
| 8 | 17 | run: | |