How do I add gitlab ci so that it'll automatically detect what my server is using?

I’m currently separating my server and client into folders respectively and would add my gitlab-ci.yml to the root of my project folder. How do I design my gitlab-ci in a way that it’ll automatically detect my server as node.js and do the things accordingly?