diff --git a/templates/node/.travis.yml.twig b/templates/node/.travis.yml.twig index 9bbe69b99..3604f8dd6 100644 --- a/templates/node/.travis.yml.twig +++ b/templates/node/.travis.yml.twig @@ -5,7 +5,7 @@ node_js: jobs: include: - stage: NPM RC Release - if: tag == *-rc* + if: tag =~ /-(rc|RC)/ node_js: "14.16" script: echo "Deploying RC to NPM..." deploy: @@ -14,7 +14,7 @@ jobs: api_key: $NPM_API_KEY tag: next - stage: NPM Release - if: tag != *-rc* + if: not tag =~ /-(rc|RC)/ node_js: "14.16" script: echo "Deploying to NPM..." deploy: diff --git a/templates/web/.travis.yml.twig b/templates/web/.travis.yml.twig index aae23993a..564159b38 100644 --- a/templates/web/.travis.yml.twig +++ b/templates/web/.travis.yml.twig @@ -5,7 +5,7 @@ node_js: jobs: include: - stage: NPM RC Release - if: tag == *-rc* + if: tag =~ /-(rc|RC)/ node_js: "14.16" script: - npm install @@ -17,7 +17,7 @@ jobs: api_key: $NPM_API_KEY tag: next - stage: NPM Release - if: tag != *-rc* + if: not tag =~ /-(rc|RC)/ node_js: "14.16" script: - npm install