Commit 825705c4 authored by Sascha Eggenberger's avatar Sascha Eggenberger
Browse files

Update .gitlab-ci.yml file

parent d0137c48
Loading
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -22,3 +22,19 @@ stylelint:
  stage: test
  script:
    - yarn version

frontend:
  stage: build
  image: node:16.13-alpine
  variables:
    GIT_STRATEGY: fetch
    GIT_CHECKOUT: "true"
  script:
    - apk add bash git openssh
    - npm install
    - npm run build
    - 'git diff --exit-code src dist || (echo "Error: Uncommitted changes detected"; exit 1)'
  artifacts:
    paths:
      - node_modules/
    expire_in: 6 mos
 No newline at end of file