Skip to content

Commit

Permalink
Updated package
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ChijiokeFLW committed Jul 10, 2024
1 parent ccf8738 commit c83e431
Show file tree
Hide file tree
Showing 25 changed files with 2,111 additions and 1,424 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@

name: Publish changes to Angular package

on:
release:
types: [created]

jobs:
check-readme-and-changelog:
runs-on: ubuntu-latest
steps:
- name: checkout code
- name: Checkout code
uses: actions/checkout@v2

- name: Check for changes in readme and changelog files
Expand All @@ -21,36 +18,38 @@ jobs:
exit 1
fi
- name: push build status to slack
- name: Push build status to Slack
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()

publish:
needs: check-readme-and-changelog
runs-on: ubuntu-latest
steps:
- name: checkout code
- name: Checkout code
uses: actions/checkout@v2

- name: setup node.js environment
- name: Setup Node.js environment
uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://registry.npmjs.org/

- name: install node.js dependencies
- name: Install Node.js dependencies
run: npm ci

- run: npm publish
- name: Publish to NPM
run: |
cd dist/flutterwave-angular-v3
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

- name: push build status to slack
- name: Push build status to Slack
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
Expand All @@ -59,5 +58,3 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
MATRIX_CONTEXT: ${{ toJson(matrix) }}
if: always()


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

# Compiled output
/dist
/tmp
/out-tsc
/bazel-out
Expand Down
2 changes: 2 additions & 0 deletions dist/flutterwave-angular-v3/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Nested package.json's are only needed for development.
**/package.json
Loading

0 comments on commit c83e431

Please sign in to comment.