Engineering / ENG-1670
CI: cache npm, and build the image on every pull request
Description
notifier's CI installs every package from scratch (4 minutes) and builds the image only on main, so a broken Dockerfile shows up after the merge.
- Cache npm between runs.
- Build (not push) the image on every pull request.
Merged. CI from 6 min to 2.