Skip to content

Commit 223adea

Browse files
committed
feat: move to github actions
1 parent 736e1d6 commit 223adea

File tree

5 files changed

+45
-79
lines changed

5 files changed

+45
-79
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
release:
8+
name: Release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2.0.0
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v1.1.0
15+
with:
16+
version: 13
17+
- name: Install dependencies
18+
run: npm ci
19+
- name: Typecheck
20+
run: npm run typecheck
21+
- name: Lint
22+
run: npm run lint
23+
- name: Test
24+
run: npm run test
25+
- name: Build
26+
run: npm run build
27+
- name: Release
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
run: npx semantic-release
32+
- name: Code Coverage
33+
uses: codecov/codecov-action@v1
34+
with:
35+
token: ${{ secrets.CODECOV_TOKEN }}

.travis.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
# TypeScript Library Starter
1+
# Fluent
22

3-
[![build status](https://travis-ci.org/escapace/typescript-library-starter.svg?branch=master)](https://travis-ci.org/escapace/typescript-library-starter)
4-
[![code coverage](https://codecov.io/gh/escapace/typescript-library-starter/branch/master/graph/badge.svg)](https://codecov.io/gh/escapace/typescript-library-starter)
5-
[![license](https://img.shields.io/badge/license-Mozilla%20Public%20License%20Version%202.0-blue.svg)]()
3+
![Build Status](https://github.com/escapace/fluent/workflows/Release/badge.svg)
4+
![Code Coverage](https://codecov.io/gh/escapace/fluent/branch/master/graph/badge.svg)
5+
![License](https://img.shields.io/badge/license-Mozilla%20Public%20License%20Version%202.0-blue.svg)
66

7-
### Usage
8-
9-
```bash
10-
git clone https://github.com/escapace/typescript-library-starter.git DIRECTORY
11-
cd DIRECTORY
12-
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
13-
npm install
14-
```

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"browser": "lib/umd/index.js",
77
"bugs": "https://github.com/escapace/fluent/issues",
88
"dependencies": {
9-
"@escapace/typelevel": "^0.5.0",
9+
"@escapace/typelevel": "^0.6.0",
1010
"lodash": "4.17.15",
1111
"tslib": "1.11.0"
1212
},
@@ -81,9 +81,9 @@
8181
},
8282
"repository": "escapace/fluent",
8383
"scripts": {
84-
"build": "recce build -e src/index.ts",
84+
"build": "npx recce build -e src/index.ts",
8585
"lint": "eslint 'src/**/*.ts' 'test/**/*.ts'",
86-
"test": "recce test -p tsconfig-test.json --browser 'test/**.spec.ts' --node 'test/**.spec.ts' --reporter lcov --reporter text --coverage-exclude 'test/**/*.ts'",
86+
"test": "npx recce test -p tsconfig-test.json --browser 'test/**.spec.ts' --node 'test/**.spec.ts' --reporter lcov --reporter text --coverage-exclude 'test/**/*.ts'",
8787
"typecheck": "tsc -p tsconfig-test.json --noEmit"
8888
},
8989
"sideEffects": false,

0 commit comments

Comments
 (0)