I'm not sure which guide you are using, but I would recommend making sure that you are using the correct path for the option Working folder that contains package.json.
You can specify the working folder like $(System.DefaultWorkingDirectory)\Test\Test\ClientApp
See related thread.
It also looks like the "Publish Build Artifacts" task is deprecated.
If you share which guide you are following I should be able to assist better.