Skip to content

Commit 1007f0e

Browse files
author
Nick Ardecky
committed
ci: Add npm publish
- add npm publish script - fix readme - remove npm publish script from package.json
1 parent 9ba96ff commit 1007f0e

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

.github/workflows/publish-to-npm.yaml

Whitespace-only changes.

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ const myData = {
9393
<zingchart data={myData}></zingchart>
9494
```
9595

96-
### id [string] (optional)
96+
### `id` [string] (optional)
9797
The id for the DOM element for ZingChart to attach to. If no id is specified, the id will be autogenerated in the form of zingchart-react-#
9898

99-
### series [array] (optional)
99+
### `series` [array] (optional)
100100
Accepts an array of series objects, and overrides a series if it was supplied into the config object. Varries by chart type used - Refer to the ZingChart documentation for more details.
101101

102102

@@ -113,20 +113,19 @@ const mySeries = [
113113

114114
```
115115

116-
117-
### width [string or number] (optional)
116+
### `width` [string or number] (optional)
118117

119118
The width of the chart. **Defaults to 100%**.
120119

121-
### height [string or number] (optional)
120+
### `height` [string or number] (optional)
122121

123122
The height of the chart. **Defaults to 480px**.
124123

125-
### theme [object] (optional)
124+
### `theme` [object] (optional)
126125

127126
The theme or 'defaults' object defined by ZingChart. More information available here: https://www.zingchart.com/docs/api/themes
128127

129-
### props [string] (optional)
128+
### `output` [string] (optional)
130129

131130
The render type of the chart. **The default is `svg`** but you can also pass the string `canvas` to render the charts in canvas.
132131

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
"start": "rollup -c -w",
2929
"prepare": "npm run build",
3030
"predeploy": "cd example && npm install && npm run build",
31-
"deploy": "gh-pages -d example/build",
32-
"publish": "npm run build && npm run publish"
31+
"deploy": "gh-pages -d example/build"
3332
},
3433
"peerDependencies": {
3534
"prop-types": "^15.5.4",

0 commit comments

Comments
 (0)