Skip to content

Commit c83e431

Browse files
committed
Updated package
Removed build folder from .gitignore Included a redirect to the built library in the publish workflow Updated README.md and package.json files in the library Updated library version
1 parent ccf8738 commit c83e431

25 files changed

+2111
-1424
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
21
name: Publish changes to Angular package
3-
42
on:
53
release:
64
types: [created]
7-
85
jobs:
96
check-readme-and-changelog:
107
runs-on: ubuntu-latest
118
steps:
12-
- name: checkout code
9+
- name: Checkout code
1310
uses: actions/checkout@v2
1411

1512
- name: Check for changes in readme and changelog files
@@ -21,36 +18,38 @@ jobs:
2118
exit 1
2219
fi
2320
24-
- name: push build status to slack
21+
- name: Push build status to Slack
2522
uses: 8398a7/action-slack@v3
2623
with:
2724
status: ${{ job.status }}
2825
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest
2926
env:
3027
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
3128
if: always()
32-
3329
publish:
3430
needs: check-readme-and-changelog
3531
runs-on: ubuntu-latest
3632
steps:
37-
- name: checkout code
33+
- name: Checkout code
3834
uses: actions/checkout@v2
3935

40-
- name: setup node.js environment
36+
- name: Setup Node.js environment
4137
uses: actions/setup-node@v1
4238
with:
4339
node-version: 16
4440
registry-url: https://registry.npmjs.org/
4541

46-
- name: install node.js dependencies
42+
- name: Install Node.js dependencies
4743
run: npm ci
4844

49-
- run: npm publish
45+
- name: Publish to NPM
46+
run: |
47+
cd dist/flutterwave-angular-v3
48+
npm publish
5049
env:
5150
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
5251

53-
- name: push build status to slack
52+
- name: Push build status to Slack
5453
uses: 8398a7/action-slack@v3
5554
with:
5655
status: ${{ job.status }}
@@ -59,5 +58,3 @@ jobs:
5958
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
6059
MATRIX_CONTEXT: ${{ toJson(matrix) }}
6160
if: always()
62-
63-

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
22

33
# Compiled output
4-
/dist
54
/tmp
65
/out-tsc
76
/bazel-out
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Nested package.json's are only needed for development.
2+
**/package.json

0 commit comments

Comments
 (0)