OverviewFilesCommitsIssuesDocsReleasesPeers

hyper-wallet / .pear-git / ci.yaml

26 lines · yaml ref:
steps:
  - name: vendor-submodule
    # CI extracts the repo via `git archive`, which does NOT include submodule
    # contents — so the file:lib/hyper-wallet-lib dependency would be an empty
    # gitlink dir and npm install would fail. Populate it from the build
    # machine's working tree (the same source-overlay pattern other family apps
    # use for private deps).
    run: |
      SRC=/storage/projects/code/hypercore-kb/hyper-fleeky/hyper-wallet/lib/hyper-wallet-lib
      if [ ! -f "$SRC/package.json" ]; then echo "ERROR: hyper-wallet-lib source missing at $SRC" && exit 1; fi
      rm -rf lib/hyper-wallet-lib && mkdir -p lib && cp -r "$SRC" lib/hyper-wallet-lib
      rm -rf lib/hyper-wallet-lib/node_modules lib/hyper-wallet-lib/.git
    timeout: 60
  - name: install-deps
    # --ignore-scripts blocks arbitrary transitive postinstalls (natives ship
    # prebuilds; keytar is node-only and falls back to file storage under bare).
    # Then run hyper-wallet's own setup-pear-compat.sh, which creates the
    # buffer -> bare-buffer shim the app needs under the bare runtime.
    run: |
      npm install --production --ignore-scripts
      bash scripts/setup-pear-compat.sh
    timeout: 300
  - name: pgh-publish
    run: pgh publish . --accept-conflict "automated CI publish; dep version splits inherited from per-app lockfiles across the pgh ecosystem"
    timeout: 300