The build is very dumb. All it does is to copy all png & svg images it finds.
That is the gulpfile.js
in the nodes-base
folder:
So if you run npm run build
it does run that and so also copies the icon. Is the icon really in the same folder as the node and did you reference it correctly like in the above example from ricardo? And did you also restart the n8n main process and refresh the browser?