Skip to content

Commit 66dfbb8

Browse files
added package deployment workflow
1 parent c4c9e1a commit 66dfbb8

File tree

3 files changed

+52
-1
lines changed

3 files changed

+52
-1
lines changed

.github/workflow/npm-publish.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+
name: Node.js Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
- uses: actions/checkout@v2
16+
17+
- name: Setup Node
18+
- uses: actions/setup-node@v1
19+
with:
20+
node-version: 12
21+
22+
- run: npm ci
23+
24+
- run: npm run lint
25+
26+
- name: build package
27+
- run: npm run build
28+
29+
publish-npm:
30+
needs: build
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout
34+
- uses: actions/checkout@v2
35+
36+
- name: Setup Node
37+
- uses: actions/setup-node@v1
38+
with:
39+
node-version: 12
40+
registry-url: https://registry.npmjs.org/
41+
- run: npm ci
42+
43+
- name: deploy
44+
- run: npm publish
45+
working-directory: ./dist
46+
env:
47+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,3 +243,7 @@ export class AppComponent {
243243
- [Flutterwave API Doc](https://developer.flutterwave.com/docs)
244244
- [Flutterwave Inline Payment Doc](https://developer.flutterwave.com/docs/flutterwave-inline)
245245
- [Flutterwave Dashboard](https://dashboard.flutterwave.com/login)
246+
247+
248+
249+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flutterwave-angular-v3",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "Flutterwave official v3 Angular library to accept payment via card , USSD, QrCode etc.",
55
"author": "Flutterwave",
66
"repository": {

0 commit comments

Comments
 (0)