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