Skip to content

Commit 20fa451

Browse files
committed
running travis scripts on version 16 and 18 and deploying with tags
1 parent 815013a commit 20fa451

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

.travis.yml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,33 @@
11
language: node_js
22
node_js:
33
- 16
4+
- 18
5+
46
branches:
57
only:
68
- dev
9+
- main
710
script:
811
- 'npm run lint'
912
- 'npm run test'
1013
- 'npm run build'
1114

12-
# deploy:
13-
# on:
14-
# branch: main
15-
# provider: npm
16-
# email: $NPM_EMAIL_ADDRESS
17-
# api_key: $NPM_AUTH_TOKEN
15+
deploy:
16+
on:
17+
branch: main
18+
tags: true
19+
provider: npm
20+
email: $NPM_EMAIL_ADDRESS
21+
api_key: $NPM_AUTH_TOKEN
1822

19-
jobs:
20-
include:
21-
- stage: npm release
22-
script: echo "Deploying to npm ..."
23-
deploy:
24-
on:
25-
branch: main
26-
provider: npm
27-
email: $NPM_EMAIL_ADDRESS
28-
api_key: $NPM_API_KEY
23+
# optional speciying jobs to run
24+
# jobs:
25+
# include:
26+
# - stage: npm release
27+
# script: echo "Deploying to npm ..."
28+
# deploy:
29+
# on:
30+
# branch: main
31+
# provider: npm
32+
# email: $NPM_EMAIL_ADDRESS
33+
# api_key: $NPM_API_KEY

0 commit comments

Comments
 (0)