image: node:18 stages: - test - deploy workflow: rules: - if: $CI_COMMIT_BRANCH pages: stage: deploy script: - npm install - npm run build artifacts: paths: - _site rules: - if: $CI_COMMIT_BRANCH == "main" sast: stage: test include: - template: Security/SAST.gitlab-ci.yml