Skip to content

Commit 2df01ad

Browse files
committed
ci: Add semantic-release configuration
1 parent 5808a77 commit 2df01ad

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.releaserc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"branch": "master",
3+
"publish": [
4+
"@semantic-release/npm",
5+
{
6+
"path": "@semantic-release/github",
7+
"assets": [
8+
{"path": "dist/watson.js"},
9+
{"path": "dist/watson.min.js"}
10+
]
11+
}
12+
]
13+
}

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ before_install:
88
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && openssl aes-256-cbc -K $encrypted_320e4a7e27b3_key
99
-iv $encrypted_320e4a7e27b3_iv -in auth.js.enc -out test/resources/auth.js -d ||
1010
true'
11+
- npm install npm@latest -g
1112
- npm install -g typescript
1213
script:
1314
- tsc
@@ -17,3 +18,7 @@ script:
1718
after_success:
1819
- npm run report-coverage
1920
- scripts/jsdoc/publish.sh
21+
deploy:
22+
- provider: script
23+
skip_cleanup: true
24+
script: npx travis-deploy-once "npx semantic-release"

0 commit comments

Comments
 (0)