The Napps Jenkins tool generates an artifact only after pushing the package to Connect.
Here's code reference.
Since publish stage is conditional, no artifacts are created for PR builds.
Ideally, for any jenkins system each successful build should generate artifacts i.e. binaries built by the current job.
hence the archiveArtifact step should happen for every successful build irrespective of branch type , workflow content etc.