|
1 | | -language: node_js |
2 | | -sudo: false |
3 | | -node_js: |
4 | | -- '10' |
5 | | -install: |
6 | | -- yarn |
7 | | -cache: |
8 | | - timeout: 3600 |
9 | | - yarn: true |
10 | | - directories: |
11 | | - - node_modules |
12 | | - - projects/ngx-openlayers/node_modules |
13 | | - - dist |
14 | | - |
15 | | -jobs: |
16 | | - include: |
17 | | - - stage: check |
18 | | - name: next lib linting |
19 | | - script: |
20 | | - - yarn lint |
21 | | - |
22 | | - - stage: build |
23 | | - name: next lib and demo |
24 | | - script: |
25 | | - - yarn build --prod --base-href "/ngx-openlayers/" --progress false |
26 | | - |
27 | | - - stage: release |
28 | | - name: next lib version on github releases |
29 | | - if: tag =~ /^\d+.\d+.\d+-next.\d+$/ |
30 | | - script: 'true' # skips tests |
31 | | - before_deploy: |
32 | | - - cd dist/ngx-openlayers |
33 | | - - cp ../../projects/ngx-openlayers/CHANGELOG.md CHANGELOG.md |
34 | | - - npm pack |
35 | | - deploy: |
36 | | - - provider: releases |
37 | | - prerelease: true |
38 | | - api_key: $GITHUB_OAUTH_TOKEN |
39 | | - file_glob: true |
40 | | - file: '*.tgz' |
41 | | - skip_cleanup: true |
42 | | - on: |
43 | | - tags: true |
44 | | - |
45 | | - - stage: release |
46 | | - name: next demo on github pages |
47 | | - if: tag =~ /^\d+.\d+.\d+-next.\d+$/ |
48 | | - script: 'true' # skips tests |
49 | | - before_deploy: |
50 | | - - cd dist/demo-ngx-openlayers |
51 | | - deploy: |
52 | | - - provider: pages |
53 | | - local_dir: dist/demo-ngx-openlayers |
54 | | - skip_cleanup: true |
55 | | - github_token: $GITHUB_OAUTH_TOKEN |
56 | | - on: |
57 | | - tags: true |
58 | | - |
59 | | - - stage: deploy |
60 | | - name: next lib version on npm |
61 | | - if: tag =~ /^\d+.\d+.\d+-next.\d+$/ |
62 | | - script: 'true' # skips tests |
63 | | - before_deploy: |
64 | | - - cp projects/ngx-openlayers/CHANGELOG.md dist/ngx-openlayers/CHANGELOG.md |
65 | | - - cd dist/ngx-openlayers |
66 | | - deploy: |
67 | | - - provider: npm |
68 | | - email: $NPM_EMAIL |
69 | | - api_key: $NPM_TOKEN |
70 | | - tag: next |
71 | | - skip_cleanup: true |
72 | | - on: |
73 | | - tags: true |
| 1 | +language: node_js |
| 2 | +sudo: false |
| 3 | +node_js: |
| 4 | +- '10' |
| 5 | +install: |
| 6 | +- yarn |
| 7 | +cache: |
| 8 | + timeout: 3600 |
| 9 | + yarn: true |
| 10 | + directories: |
| 11 | + - node_modules |
| 12 | + - projects/ngx-openlayers/node_modules |
| 13 | + - dist |
| 14 | + |
| 15 | +jobs: |
| 16 | + include: |
| 17 | + - stage: check |
| 18 | + name: next lib linting |
| 19 | + script: |
| 20 | + - yarn lint |
| 21 | + |
| 22 | + - stage: build |
| 23 | + name: next lib and demo |
| 24 | + script: |
| 25 | + - yarn build:lib |
| 26 | + - cp -r dist/ngx-openlayers dist/ngx-openlayers-publish |
| 27 | + - yarn build:demo --base-href "/ngx-openlayers/" --progress false |
| 28 | + |
| 29 | + - stage: release |
| 30 | + name: next lib version on github releases |
| 31 | + if: tag =~ /^\d+.\d+.\d+-next.\d+$/ |
| 32 | + script: 'true' # skips tests |
| 33 | + before_deploy: |
| 34 | + - cd dist/ngx-openlayers-publish |
| 35 | + - cp ../../projects/ngx-openlayers/CHANGELOG.md CHANGELOG.md |
| 36 | + - npm pack |
| 37 | + deploy: |
| 38 | + - provider: releases |
| 39 | + prerelease: true |
| 40 | + api_key: $GITHUB_OAUTH_TOKEN |
| 41 | + file_glob: true |
| 42 | + file: '*.tgz' |
| 43 | + skip_cleanup: true |
| 44 | + on: |
| 45 | + tags: true |
| 46 | + |
| 47 | + - stage: release |
| 48 | + name: next demo on github pages |
| 49 | + if: tag =~ /^\d+.\d+.\d+-next.\d+$/ |
| 50 | + script: 'true' # skips tests |
| 51 | + before_deploy: |
| 52 | + - cd dist/demo-ngx-openlayers |
| 53 | + deploy: |
| 54 | + - provider: pages |
| 55 | + local_dir: dist/demo-ngx-openlayers |
| 56 | + skip_cleanup: true |
| 57 | + github_token: $GITHUB_OAUTH_TOKEN |
| 58 | + on: |
| 59 | + tags: true |
| 60 | + |
| 61 | + - stage: deploy |
| 62 | + name: next lib version on npm |
| 63 | + if: tag =~ /^\d+.\d+.\d+-next.\d+$/ |
| 64 | + script: 'true' # skips tests |
| 65 | + before_deploy: |
| 66 | + - cp projects/ngx-openlayers/CHANGELOG.md dist/ngx-openlayers-publish/CHANGELOG.md |
| 67 | + - cd dist/ngx-openlayers-publish |
| 68 | + deploy: |
| 69 | + - provider: npm |
| 70 | + email: $NPM_EMAIL |
| 71 | + api_key: $NPM_TOKEN |
| 72 | + tag: next |
| 73 | + skip_cleanup: true |
| 74 | + on: |
| 75 | + tags: true |
0 commit comments