Skip to content

Commit e7a0419

Browse files
update dependencies and publish with actions
1 parent 7b4147e commit e7a0419

7 files changed

Lines changed: 2775 additions & 2696 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish Package
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
prepare:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: 12
16+
- run: npm install
17+
- run: npm run lint
18+
19+
publish-npm:
20+
needs: prepare
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: actions/setup-node@v1
25+
with:
26+
node-version: 12
27+
registry-url: 'https://registry.npmjs.org'
28+
- run: npm install
29+
- run: npm publish
30+
env:
31+
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}

.gitlab-ci.yml

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

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# React Native Speedometer Chart
2-
[![npm version](https://badge.fury.io/js/react-native-speedometer-chart.svg)](https://badge.fury.io/js/react-native-speedometer-chart) [![npm downloads](https://img.shields.io/npm/dt/react-native-speedometer-chart.svg)](https://npm-stat.com/charts.html?package=react-native-speedometer-chart)
2+
[![npm version](https://badge.fury.io/js/react-native-speedometer-chart.svg)](https://badge.fury.io/js/react-native-speedometer-chart) [![npm downloads](https://img.shields.io/npm/dt/react-native-speedometer-chart.svg)](https://npm-stat.com/charts.html?package=react-native-speedometer-chart) [![Publish Package](https://github.com/LucasMonteiro1/react-native-speedometer-chart/workflows/Publish%20Package/badge.svg?branch=master&event=push)](https://github.com/LucasMonteiro1/react-native-speedometer-chart/actions)
33
[![NPM](https://nodei.co/npm/react-native-speedometer-chart.png?downloads=true)](https://nodei.co/npm/react-native-speedometer-chart/)
44
---
55
Speedometer Chart component for React Native
@@ -94,7 +94,11 @@ export default class Main extends Component {
9494
![Total usage](docs/image5.png?raw=true "total usage")
9595

9696
```javascript
97+
<Speedometer value={0} totalValue={100} showIndicator />
9798
<Speedometer value={25} totalValue={100} showIndicator />
99+
<Speedometer value={50} totalValue={100} showIndicator />
100+
<Speedometer value={75} totalValue={100} showIndicator />
101+
<Speedometer value={100} totalValue={100} showIndicator />
98102
```
99103
![](docs/image6.png?raw=true "Needle indicator")
100104

docs/_image6.png

4.77 KB
Loading

docs/image6.png

38.5 KB
Loading

0 commit comments

Comments
 (0)