.gitlab-ci.yml 324 B

1234567891011121314151617181920212223242526
  1. image: node:lts
  2. stages:
  3. - test
  4. - deploy
  5. test:
  6. stage: test
  7. script:
  8. - npm install --force
  9. - npm run build
  10. except:
  11. - master
  12. pages:
  13. stage: deploy
  14. script:
  15. - npm install --force
  16. - npm run build
  17. - mv ./build ./public
  18. artifacts:
  19. paths:
  20. - public
  21. only:
  22. - master