0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

chore(ci): improve the workflow publishing doc only when releasing

This commit is contained in:
Sergio Herrera Guzmán 2018-06-30 17:30:04 +02:00
parent f4a4f02c9b
commit 40c1abca8b

View file

@ -32,7 +32,7 @@ aliases:
restore_cache: restore_cache:
keys: keys:
- *repo_key - *repo_key
- &ignore_branches - &ignore_non_dev_branches
filters: filters:
tags: tags:
only: /.*/ only: /.*/
@ -41,6 +41,13 @@ aliases:
- gh-pages - gh-pages
- l10n_master - l10n_master
- /release\/.*/ - /release\/.*/
- &execute_on_release
filters:
tags:
only: /(v)?[0-9]+(\.[0-9]+)*/
branches:
ignore:
- /.*/
jobs: jobs:
prepare: prepare:
@ -187,27 +194,27 @@ workflows:
workflow: workflow:
jobs: jobs:
- prepare: - prepare:
<<: *ignore_branches <<: *ignore_non_dev_branches
- test_node6: - test_node6:
requires: requires:
- prepare - prepare
<<: *ignore_branches <<: *ignore_non_dev_branches
- test_node8: - test_node8:
requires: requires:
- prepare - prepare
<<: *ignore_branches <<: *ignore_non_dev_branches
- test_node9: - test_node9:
requires: requires:
- prepare - prepare
<<: *ignore_branches <<: *ignore_non_dev_branches
- test_node10: - test_node10:
requires: requires:
- prepare - prepare
<<: *ignore_branches <<: *ignore_non_dev_branches
- test_e2e: - test_e2e:
requires: requires:
- prepare - prepare
<<: *ignore_branches <<: *ignore_non_dev_branches
- coverage: - coverage:
requires: requires:
- test_node6 - test_node6
@ -215,7 +222,7 @@ workflows:
- test_node9 - test_node9
- test_node10 - test_node10
- test_e2e - test_e2e
<<: *ignore_branches <<: *ignore_non_dev_branches
- publish_gh_pages: - publish_gh_pages:
requires: requires:
- test_node6 - test_node6
@ -223,14 +230,9 @@ workflows:
- test_node9 - test_node9
- test_node10 - test_node10
- test_e2e - test_e2e
<<: *ignore_branches <<: *execute_on_release
- publish_package: - publish_package:
requires: requires:
- coverage - coverage
- publish_gh_pages - publish_gh_pages
filters: <<: *execute_on_release
tags:
only: /(v)?[0-9]+(\.[0-9]+)*/
branches:
ignore:
- /.*/