Skip to content

Commit 48bc835

Browse files
author
Nick Ardecky
committed
feature: v0.0.7
- add constants from public github repository - add es6 version of library
1 parent a58e97b commit 48bc835

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
# Name is optional and if present must be used
3+
# in the url path for badges
4+
name: Publish to NPM
5+
6+
# only run when a release has been "published"
7+
on:
8+
release:
9+
types: [published]
10+
11+
jobs:
12+
13+
# publish to npm on release
14+
publish:
15+
name: NPM Publish
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
node-version: [12]
20+
21+
steps:
22+
- uses: actions/checkout@v1
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
registry-url: https://registry.npmjs.org/
28+
- run: npm install
29+
- run: npm run build
30+
- run: cd dist/zingchart-angular && npm publish --access public
31+
env:
32+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

projects/zingchart-angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zingchart-angular",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"peerDependencies": {
55
"@angular/common": "^8.2.14",
66
"@angular/core": "^8.2.14",

projects/zingchart-angular/src/lib/zingchart-angular.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference path="../zingchart.d.ts" />
22
import { Component, AfterViewInit, OnDestroy, Input, Output, EventEmitter, OnChanges, SimpleChanges} from '@angular/core';
3-
import zingchart from 'zingchart';
3+
import zingchart from 'zingchart/es6';
44

55
import { ZingchartAngularService } from './zingchart-angular.service';
66

0 commit comments

Comments
 (0)