Adjust condition for release stage

This commit is contained in:
Christopher Willis-Ford 2020-10-09 14:26:16 -07:00
parent 30ee756fc7
commit c73c4cc5af

View file

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