Skip to content

Commit cebd67a

Browse files
committed
Add conditional RC deployments for web + node
1 parent 3c1bbfd commit cebd67a

File tree

2 files changed

+34
-16
lines changed

2 files changed

+34
-16
lines changed

templates/node/.travis.yml.twig

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
1-
21
language: node_js
32
node_js:
4-
- "14.16"
3+
- "18.8.0"
54

65
jobs:
76
include:
8-
- stage: npm release
9-
node_js: "14.16"
10-
script: echo "Deploying to npm ..."
7+
- stage: NPM RC Release
8+
if: tag == *-RC*
9+
node_js: "18.8.0"
10+
script: echo "Deploying RC to NPM..."
11+
deploy:
12+
provider: npm
13+
email: $NPM_EMAIL
14+
api_key: $NPM_API_KEY
15+
tag: next
16+
- stage: NPM Release
17+
if: tag != *-RC*
18+
node_js: "18.8.0"
19+
script: echo "Deploying to NPM..."
1120
deploy:
1221
provider: npm
1322
email: $NPM_EMAIL

templates/web/.travis.yml.twig

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,31 @@
1-
21
language: node_js
32
node_js:
4-
- "14.16"
3+
- "18.8.0"
54

65
jobs:
76
include:
8-
- stage: npm release
9-
node_js: "14.16"
10-
script:
11-
- echo "Installing dependencies ..."
12-
- npm i
13-
- echo "Building library ..."
7+
- stage: NPM RC Release
8+
if: tag == *-RC*
9+
node_js: "18.8.0"
10+
script:
11+
- npm install
1412
- npm run build
15-
- echo "Deploying to npm ..."
13+
- echo "Deploying RC to NPM..."
14+
deploy:
15+
provider: npm
16+
email: $NPM_EMAIL
17+
api_key: $NPM_API_KEY
18+
tag: next
19+
- stage: NPM Release
20+
if: tag != *-RC*
21+
node_js: "18.8.0"
22+
script:
23+
- npm install
24+
- npm run build
25+
- echo "Deploying to NPM..."
1626
deploy:
1727
provider: npm
1828
email: $NPM_EMAIL
1929
api_key: $NPM_API_KEY
20-
skip_cleanup: true
2130
on:
22-
tags: true
31+
tags: true

0 commit comments

Comments
 (0)