.gitlab-ci.yml 547 Bytes
Newer Older
Jonathan Silverblood's avatar
Jonathan Silverblood committed
1 2 3 4
image: node

stages:
    - lint
5
    - test
6
    - publish
7

8 9 10
cache:
    paths:
        - node_modules/
Jonathan Silverblood's avatar
Jonathan Silverblood committed
11

12 13 14
before_script:
    - npm install
    - npm run build
15

Jonathan Silverblood's avatar
Jonathan Silverblood committed
16 17 18
eslint:
    stage: lint
    script:
19
        - npm run lint
20

21 22 23 24 25
spellcheck:
    stage: lint
    script:
        - npm run spellcheck

26
ava:
27
    stage: test
28
    script:
29
        - npm run test
30 31 32 33

release:
     stage: publish
     script:
34
          - npm run build
35
          - npm config set //registry.npmjs.org/:_authToken ${NPM_AUTH_TOKEN}
36 37 38 39
          - npm publish
     only:
          - production