From aaebde746517b7e5402d76f7f79ef1631716d73b Mon Sep 17 00:00:00 2001 From: nagendra Date: Thu, 18 Apr 2024 16:10:55 +0530 Subject: [PATCH] changes made --- .github/workflows/publish.yml | 33 +++++++++++++++++++++++++++++++++ README.md | 10 +++++----- 2 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..cf05328 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,33 @@ +name: "CI/CD NPM" + +on: + push: + branches: [main] +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + - name: node + uses: actions/setup-node@v2 + with: + node-version: 20 + registry-url: https://registry.npmjs.org + - name : "install_dependencies" + run: npm install + working-directory: ./ + - name : "check build" + run: npm pack --dry-run + working-directory: ./ + - name : "versioning" + run: npm version patch + working-directory: ./ + - name : "build" + run: npm run build + working-directory: ./ + - name : "publish" + run: npm publish --access public + working-directory: ./ + env: + NODE_AUTH_TOKEN: ${{secrets.PVSCREATIONS}} \ No newline at end of file diff --git a/README.md b/README.md index 753ab99..7bebba0 100644 --- a/README.md +++ b/README.md @@ -23,11 +23,11 @@ PracticalMath.euclideanDistance({ point1: {x:1,y:2,z:3}, point2: {x:3,y:4,z:2} } ``` # 2.Available Functions -#####* findBestFitLine -#####* euclideanDistance -#####* calculateCosineAngleABC -#####* midPoint -#####* distancePointToLine +##### * findBestFitLine +##### * euclideanDistance +##### * calculateCosineAngleABC +##### * midPoint +##### * distancePointToLine # Future Scopes * Evolve : Develop with more usefull functions