Adjust condition for release stage

This commit is contained in:
rschamp 2020-10-09 17:13:46 -04:00
parent 969e87eff0
commit 3662209ffa

View file

@ -19,7 +19,7 @@ jobs:
include:
- env: NPM_SCRIPT=lint
- env: NPM_SCRIPT=build
if: not (branch in (master, develop) and type != pull_request)
if: not (type != pull_request AND (branch =~ /^(develop|master|hotfix\/)/))
- stage: release
env: NPM_SCRIPT=build
before_deploy:
@ -77,4 +77,4 @@ jobs:
stages:
- test
- name: release
if: branch in (master, develop) and type != pull_request
if: type != pull_request AND (branch =~ /^(develop|master|hotfix\/)/)