Skip to content

Commit 6b6980f

Browse files
committed
Working on CD process
1 parent 99c23fb commit 6b6980f

File tree

4 files changed

+30
-11
lines changed

4 files changed

+30
-11
lines changed

.github/workflows/CD.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,32 @@ on:
44
release:
55
types: [ published ]
66
jobs:
7-
publish:
7+
build:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v1
10+
- uses: actions/checkout@v2
1111
- uses: actions/setup-node@v1
1212
with:
13-
node-version: 10
14-
- run: npm install
15-
- run: npm run test
16-
- uses: JS-DevTools/npm-publish@v1
13+
node-version: 12
14+
- name: Install Dependencies
15+
run: npm install
16+
17+
- name: Build TypeScript
18+
run: npm run build
19+
20+
- name: Browserify Output
21+
run: npm run browserify
22+
23+
publish-npm:
24+
needs: build
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: actions/setup-node@v1
1729
with:
18-
token: ${{ secrets.NPM_TOKEN }}
30+
node-version: 12
31+
registry-url: https://registry.npmjs.org/
32+
33+
- run: npm publish --ignore-scripts
34+
env:
35+
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}

.npmignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.babelrc
22
node_modules
3-
test/coverage
4-
npm-debug.log
3+
test
4+
npm-debug.log

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Vonage Video Accelerators
22

3+
[![CI](https://github.com/Vonage/video-accelerator/actions/workflows/CI.yml/badge.svg)](https://github.com/Vonage/video-accelerator/actions/workflows/CI.yml)
4+
35
The Video Accelerators provide an easy integration for the Vonage Video API.
46
Whether you've already built your application using the Video API or are just
57
getting started, Vonage Video Accelerators help you implement the functionality

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "video-accelerator",
3-
"version": "1.0.0",
2+
"name": "@vonage/video-accelerator",
3+
"version": "0.0.1",
44
"description": "The Video Accelerator provides a simple way to integrate real-time audio/video into your web application using the Vonage Video platform.",
55
"main": "dist/videoAccelerator.js",
66
"scripts": {

0 commit comments

Comments
 (0)