Skip to content

Commit c348533

Browse files
author
Nick Ardecky
committed
ci: Add CI for publishing tags
1 parent fe49469 commit c348533

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed
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 RC to NPM
5+
6+
# only run when a release has been "published"
7+
on:
8+
release:
9+
types: [prereleased]
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: npm run publish:tag
31+
env:
32+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ jobs:
2727
registry-url: https://registry.npmjs.org/
2828
- run: npm install
2929
- run: npm run build
30-
- run: cd dist/zingchart-angular && npm publish --access public
30+
- run: npm run publish
3131
env:
3232
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.9-beta.1",
3+
"version": "0.0.9-beta.2",
44
"description": "ZingChart Angular Component wrapper to allow native Angular syntax for javascript charts, chart events, chart methods and chart styling.",
55
"author": "ZingSoft Inc.",
66
"license": "MIT",

0 commit comments

Comments
 (0)