image: node:latest include: - template: Security/SAST.gitlab-ci.yml stages: - test - build - deploy sast: stage: test unit-test: stage: test script: - yarn install - yarn run test build: stage: build script: - yarn install - yarn run build artifacts: paths: - dist deploy: needs: ["build"] stage: deploy image: node:latest script: - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc - npm publish