command/publish: upgrades to read-cortex-json@3.x; #386