-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from zingchart/dev
v0.0.7
- Loading branch information
Showing
9 changed files
with
4,404 additions
and
3,076 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Name is optional and if present must be used | ||
# in the url path for badges | ||
name: Build | ||
|
||
# Run on a dev branch | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
Build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [10.13] | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v1 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
# npm ci REQUIRES a package-lock.json file | ||
- name: Install Fresh Dependencies | ||
run: | | ||
rm package-lock.json | ||
npm install | ||
- name: Build library | ||
run: npm run build | ||
- name: Log build output | ||
run: | | ||
ls -alt dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
# 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 run build | ||
- run: cd dist/zingchart-angular && npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Name is optional and if present must be used | ||
# in the url path for badges | ||
name: Test | ||
|
||
# Run on a dev branch | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
Test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [10.13] | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v1 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
# npm ci REQUIRES a package-lock.json file | ||
- name: Install Fresh Dependencies | ||
run: | | ||
rm package-lock.json | ||
npm install | ||
- name: Build library | ||
run: npm run build | ||
- name: Run Unit Tests | ||
run: npm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.