Skip to content

Commit

Permalink
ci: add travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pchiwan committed Nov 9, 2020
1 parent 5cc9de2 commit bc5aa25
Show file tree
Hide file tree
Showing 3 changed files with 3,688 additions and 67 deletions.
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
dist: trusty

language: node_js

node_js:
- '12'

branches:
only:
- main

cache: yarn

before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"

install:
- yarn install --frozen-lockfile --production=false

script:
- yarn test
- yarn build

after_success:
- yarn run semantic-release
20 changes: 17 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
{
"name": "markdown-truncate",
"version": "1.0.3",
"version": "0.0.0-development",
"description": "A zero-dependency, vanilla JavaScript utility to truncate markdown text.",
"main": "lib/index.js",
"scripts": {
"test": "jest",
"build": "esbuild ./src/index.js --minify --outfile=lib/index.js"
"build": "esbuild ./src/index.js --minify --outfile=lib/index.js",
"semantic-release": "semantic-release"
},
"author": "Sílvia Mur Blanch <[email protected]>",
"license": "ISC",
"devDependencies": {
"esbuild": "^0.8.5",
"jest": "^26.6.3",
"prettier": "^2.1.2"
"prettier": "^2.1.2",
"semantic-release": "^17.2.2"
},
"release": {
"branches": [
"main"
],
"verifyConditions": [
"@semantic-release/github"
]
},
"repository": {
"type": "git",
"url": "https://github.com/pchiwan/markdown-truncate.git"
}
}
Loading

0 comments on commit bc5aa25

Please sign in to comment.