--- include: project: infra/gitlab ref: master file: templates/nodejs.ci.yml cache: key: ${CI_COMMIT_REF_SLUG} paths: - .npm/ default: image: node:20 stages: - prepare - publish prepare: stage: prepare image: node:20 before_script: - npm ci --cache .npm --prefer-offline - npm install -g semantic-release@24 @semantic-release/gitlab@13 script: - npm run build artifacts: when: on_success paths: - dist expire_in: 1 day tags: - test # test:e2e: # stage: test # image: # name: cypress/included:13.12.0 # entrypoint: [""] # services: # - name: ${CI_REGISTRY_IMAGE}/djangoldp:latest # before_script: # # install missing dependencies # - npm install cypress-localstorage-commands # # making sure the process is orphan # - npm run serve -- -l silent & # script: # - cypress run -e CYPRESS_baseUrl=http://localhost:4173 --record --key 27e97364-a231-4bcd-aa5f-af3ba9da7d46 # except: # - tags # tags: # - test publish: stage: publish extends: .publish_npm only: - master - beta - alpha