Skip to content

Commit 6f08a33

Browse files
committed
Add travis-ci configuration
1 parent a9988d1 commit 6f08a33

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.npmignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
tsconfig.json
2+
.travis.yml
3+
src/
4+
reports/
5+
.npmignore
6+
7+
# npm pack
8+
typescript-plugin-css-module-types-*.tgz

.travis.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
language: nodejs
2+
3+
cache:
4+
yarn: true
5+
6+
before_script:
7+
- yarn install
8+
- yarn run build
9+
10+
script:
11+
- yarn run test
12+
13+
after_success:
14+
- yarn pack
15+
16+
deploy:
17+
- provider: releases
18+
api_key: $GITHUB_TOKEN
19+
file_glob: true
20+
file: "typescript-plugin-css-module-types-*.tgz"
21+
skip_cleanup: true
22+
on:
23+
tags: true
24+
- provider: npm
25+
skip_cleanup: true
26+
27+
api_key: $NPM_TOKEN
28+
on:
29+
tags: true

0 commit comments

Comments
 (0)