Skip to content

Commit 927d7d0

Browse files
committed
finished the travis yaml for deployment
1 parent 6a8670e commit 927d7d0

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

.travis.yml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,32 @@
11
language: node_js
22
node_js:
33
- 16
4+
- 17
45
- 18
56

7+
# run test for the above node versions for branches dev and main
68
branches:
79
only:
810
- dev
911
- main
12+
# scripts to run for each test
1013
script:
14+
- echo "Running tests against $(node -v) ..."
1115
- 'npm run lint'
1216
- 'npm run test'
1317
- 'npm run build'
18+
# specify a job to run
19+
jobs:
20+
include:
21+
- stage: npm release
22+
node_js: "17"
23+
script: echo "Deploying to npm ..."
24+
deploy:
25+
on:
26+
branch: main
27+
tags: true
28+
provider: npm
29+
email: NPM_EMAIL_ADDRESS
30+
api_key: NPM_API_KEY
1431

15-
deploy:
16-
on:
17-
branch: main
18-
tags: true
19-
provider: npm
20-
email: NPM_EMAIL_ADDRESS
21-
api_key: NPM_AUTH_TOKEN
2232

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)