UNPKG

526 BYAMLView Raw
1version: '1.0'
2
3steps:
4 main_clone:
5 title: Cloning main repository...
6 type: git-clone
7 repo: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}'
8 revision: '${{CF_REVISION}}'
9
10 unit_tests:
11 title: Running lint and unit-tests
12 image: node:10.13.0-alpine
13 commands:
14 - yarn install --frozen-lockfile
15 - yarn run lint
16 - yarn run test:unit
17
18 deploy_to_npm:
19 type: npm-publish
20 arguments:
21 NPM_TOKEN: '${{NPM_TOKEN}}'
22 DIR: ./http-infra
23 when:
24 branch:
25 only: [ master ]