Skip to content

Commit bc5aa25

Browse files
committed
ci: add travis.yml
1 parent 5cc9de2 commit bc5aa25

File tree

3 files changed

+3688
-67
lines changed

3 files changed

+3688
-67
lines changed

.travis.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
dist: trusty
2+
3+
language: node_js
4+
5+
node_js:
6+
- '12'
7+
8+
branches:
9+
only:
10+
- main
11+
12+
cache: yarn
13+
14+
before_install:
15+
- curl -o- -L https://yarnpkg.com/install.sh | bash
16+
- export PATH="$HOME/.yarn/bin:$PATH"
17+
18+
install:
19+
- yarn install --frozen-lockfile --production=false
20+
21+
script:
22+
- yarn test
23+
- yarn build
24+
25+
after_success:
26+
- yarn run semantic-release

package.json

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,31 @@
11
{
22
"name": "markdown-truncate",
3-
"version": "1.0.3",
3+
"version": "0.0.0-development",
44
"description": "A zero-dependency, vanilla JavaScript utility to truncate markdown text.",
55
"main": "lib/index.js",
66
"scripts": {
77
"test": "jest",
8-
"build": "esbuild ./src/index.js --minify --outfile=lib/index.js"
8+
"build": "esbuild ./src/index.js --minify --outfile=lib/index.js",
9+
"semantic-release": "semantic-release"
910
},
1011
"author": "Sílvia Mur Blanch <pchiwan@gmail.com>",
1112
"license": "ISC",
1213
"devDependencies": {
1314
"esbuild": "^0.8.5",
1415
"jest": "^26.6.3",
15-
"prettier": "^2.1.2"
16+
"prettier": "^2.1.2",
17+
"semantic-release": "^17.2.2"
18+
},
19+
"release": {
20+
"branches": [
21+
"main"
22+
],
23+
"verifyConditions": [
24+
"@semantic-release/github"
25+
]
26+
},
27+
"repository": {
28+
"type": "git",
29+
"url": "https://github.com/pchiwan/markdown-truncate.git"
1630
}
1731
}

0 commit comments

Comments
 (0)