# Official framework image. Look for the different tagged releases at: # https://hub.docker.com/r/library/node/tags/ image: node:lts stages: - deps - lint - build - deploy cache: untracked: true key: "$CI_BUILD_REF_NAME" paths: - node_modules/ Deps: stage: deps script: - npm ci artifacts: paths: - node_modules/ expire_in: 2 weeks Lint: stage: lint script: - npm run lint build: stage: build script: - npm run build:prod artifacts: paths: - dist expire_in: 2 weeks variables: NPM_TOKEN: ${CI_JOB_TOKEN} PACKAGE_VERSION: git describe --tags --abbrev=0 HEAD publish: stage: deploy script: - npm run ci-publish || true only: - tags - master