Use script in GitLab

To generate pipeline, you can start to create a .gitlab-ci.yml.

In your case, you tell us you want run one npm command. So you can have one stage, which contains one job based on the node image, and put your commnd in the script tag.

You can have documentation on GitLab CI/CD Examples | GitLab

1 Like