Skip to content

Commit 35bbbd5

Browse files
committed
ci(travis): test new travis config
ci(travis): test new travis config ci(travis): test new travis config ci(travis): test new travis config ci(travis): test new travis config ci(travis): test new travis config ci(travis): test new travis config ci(travis): test new travis config ci(travis): test new travis config ci(travis): test new travis config ci(travis): deploy docs on github pages ci(travis): test new travis config
1 parent cad8537 commit 35bbbd5

File tree

4 files changed

+186
-203
lines changed

4 files changed

+186
-203
lines changed

.releaserc.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"branch": "next",
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
[
7+
"@semantic-release/changelog",
8+
{
9+
"changelogTitle": "# Changelog\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines."
10+
}
11+
],
12+
[
13+
"@semantic-release/npm",
14+
{
15+
"tarballDir": "dist"
16+
}
17+
],
18+
[
19+
"@semantic-release/github",
20+
{
21+
"assets": "dist/*.tgz"
22+
}
23+
],
24+
[
25+
"@semantic-release/git",
26+
{
27+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
28+
}
29+
]
30+
]
31+
}

.travis.yml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
11
language: node_js
2-
cache:
3-
directories:
4-
- ~/.npm
5-
notifications:
6-
email: false
2+
73
node_js:
8-
- '10'
9-
- '11'
10-
- '8'
4+
- 11
5+
- 10
6+
- 8
7+
118
script:
12-
- npm run build
13-
after_success:
14-
- npm run travis-deploy-once "npm run report-coverage"
15-
branches:
16-
except:
17-
- /^v\d+\.\d+\.\d+$/
9+
- npm run test:prod && npm run build
10+
1811
jobs:
1912
include:
2013
- stage: release
2114
node_js: lts/*
22-
script:
23-
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run deploy-docs; fi
24-
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run semantic-release; fi
15+
deploy:
16+
provider: script
17+
skip_cleanup: true
18+
script:
19+
- npx semantic-release
20+
on:
21+
branch: next

0 commit comments

Comments
 (0)