Update preview and publish scripts.