image: registry.gitlab.com/openstapps/projectmanagement/node before_script: - npm ci stages: - build - audit - publish - deploy build: stage: build script: - npm run build artifacts: paths: - lib audit: stage: audit script: - npm audit allow_failure: true except: - schedules scheduled-audit: stage: audit script: - npm audit --audit-level=high only: - schedules package: dependencies: - build tags: - secrecy stage: publish script: - echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc - npm publish only: - /^v[0-9]+\.[0-9]+\.[0-9]+$/ artifacts: paths: - lib pages: stage: deploy script: - npm run documentation - mv docs public only: - /^v[0-9]+\.[0-9]+\.[0-9]+$/ artifacts: paths: - public