Skip to content

Commit b2a8421

Browse files
committed
Add GitHub Workflows
1 parent 2022d49 commit b2a8421

File tree

4 files changed

+6564
-6333
lines changed

4 files changed

+6564
-6333
lines changed

.github/workflows/push.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Node CI
2+
on:
3+
push:
4+
branches: [main]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- uses: actions/setup-node@v1
11+
with:
12+
node-version: 15.4.0
13+
- run: npm install --ignore-scripts
14+
- run: npm test:coverage
15+
- uses: codecov/codecov-action@v1
16+
with:
17+
fail_ci_if_error: true
18+
verbose: true

.github/workflows/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Release CI
2+
on:
3+
release:
4+
workflow_dispatch:
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- uses: actions/setup-node@v1
11+
with:
12+
node-version: 15.4.0
13+
- run: npm install
14+
- uses: JS-DevTools/npm-publish@v1
15+
with:
16+
token: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"build": "tsc",
1616
"test": "jest",
1717
"test:types": "tsc --project . --noEmit",
18-
"test:coverage": "npm test -- --coverage=true"
18+
"test:coverage": "npm test -- --coverage=true --collectCoverage"
1919
},
2020
"keywords": ["react native", "theme", "theming", "stylesheet"],
2121
"peerDependencies": {

0 commit comments

Comments
 (0)