Skip to content

Commit

Permalink
ci: Feature
Browse files Browse the repository at this point in the history
- add CI autodeploy
- update readme with nuget
- add nuget package base file
  • Loading branch information
Nick Ardecky committed Mar 5, 2020
1 parent a28f2ad commit 4618d65
Show file tree
Hide file tree
Showing 6 changed files with 1,077 additions and 17 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

# Name is optional and if present must be used
# in the url path for badges
name: Publish to NPM

# only run when a release has been "published"
on:
release:
types: [published]

jobs:

# publish to npm on release
publish:
name: NPM Publish
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
26 changes: 26 additions & 0 deletions .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

# Name is optional and if present must be used
# in the url path for badges
name: Publish to Nuget

# only run when a release has been "published"
on:
release:
types: [published]

jobs:

# publish to npm on release
publish:
name: Nuget Publish
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12]

steps:
- uses: actions/checkout@v1
- name: Pack nuget Package
run: dotnet pack --configuration release
- name: Push package to nuget
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org.v3/index.json
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
ehthumbs.db
Thumbs.db


# Directories
node_modules/
46 changes: 36 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,36 @@ Our JavaScript charting library is a commercial product. But the full branded ve

We publish our live, dev and ALL previous builds on our CDN. This is the quickest way to get started.

Live Version and Modules
##### Live Version

Live Version and Modules (https://cdn.zingchart.com/zingchart.min.js | https://cdn.zingchart.com/modules/)

```
https://cdn.zingchart.com/zingchart.min.js
https://cdn.zingchart.com/modules/
```

ES6 Version and Modules
##### ES6 Version

ES6 Version and Modules (https://cdn.zingchart.com/zingchart-es6.min.js | https://cdn.zingchart.com/modules-es6/)

```
https://cdn.zingchart.com/zingchart-es6.min.js
https://cdn.zingchart.com/modules-es6/
```
##### Previous Version

Previous Version v2.8.8 (https://cdn.zingchart.com/2.8.8)

Previous Version (2.8.8). You can view all files by visiting the version root directory [https://cdn.zingchart.com/2.8.8/](https://cdn.zingchart.com/2.8.8/)
```
https://cdn.zingchart.com/2.8.8/zingchart.min.js
https://cdn.zingchart.com/2.8.8/modules/
```

Dev/Canary Version
##### Dev/Canary Version

Dev/Canary Version (https://cdn.zingchart.com/dev/zingchart.min.js | https://cdn.zingchart.com/dev/modules/)

```
https://cdn.zingchart.com/dev/zingchart.min.js
https://cdn.zingchart.com/dev/modules/
Expand All @@ -48,34 +59,49 @@ We have a variety of package managers to download our library, as well as integr


#### *npm*

```
npm install zingchart
```

### Integrations
#### nuget

If you are looking for the ZingChart package and are a .NET user go to [nuget package here](https://www.nuget.org/packages/ZingChart/).

```
Install-Package ZingChart -Version 2.5.0
```

#### Integrations

Installing our integration packages will also install the library for you. ZingChart is wrapped in a variety of ways for easy consumption with popular JS libraries and frameworks. Official releases are shown here. If you have a third party integration please contact us for inclusion.

Angular
##### Angular

```
npm install zingchart-angular
```

React
##### React

```
npm install zingchart-react
```

Vue
##### Vue

```
npm install zingchart-react
```

Web Component
##### Web Component

```
npm install zingchart-web-component
```

AngularJS
##### AngularJS

```
npm install zingchart-angularjs
```
Expand Down
16 changes: 10 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "zingchart",
"version": "2.8.9",
"description": "Our JavaScript charting library is a commercial product. But the full branded version is free to try, forever.",
"main" : "index.js",
"module" : "es6.js",
"main": "index.js",
"module": "es6.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"publish:nuget": "nuget-publish"
},
"repository": {
"type": "git",
Expand All @@ -14,12 +14,16 @@
"keywords": [
"zingchart",
"chart",
"charts",
"charting",
"javascript",
"charts",
"javascript charts",
"html5",
"charts"
"interactive maps"
],
"author": "ZingChart",
"homepage": "https://github.com/zingchart/ZingChart"
"homepage": "https://www.zingchart.com",
"devDependencies": {
"nuget-publish": "^1.0.3"
}
}
Loading

0 comments on commit 4618d65

Please sign in to comment.