From 2715d072753ec7fa3bc91b95a8ecd8386a7abdfb Mon Sep 17 00:00:00 2001 From: yeshamavani <83634146+yeshamavani@users.noreply.github.com> Date: Wed, 15 May 2024 15:31:21 +0530 Subject: [PATCH] fix(ci-cd): step to generate changelog (#173) add the missing ci check on prs GH-172 --- .github/workflows/main.yaml | 27 +++++++++++++++++++++++++++ .github/workflows/release.yaml | 4 +++- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/main.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..dae4ae2 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,27 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + branches: [master] + +# This workflow contains a single job called "npm_test" +jobs: + npm_test: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '18.x' + + - name: Install Dependencies 📌 + run: npm ci + + - name: Run Test Cases 🔧 + run: npm run test diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c5c333b..3c2ac49 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,7 +22,7 @@ jobs: run: | git config --global user.name $CONFIG_USERNAME git config --global user.email $CONFIG_EMAIL - git remote set-url origin https://$GITHUB_ACTOR:$GITHUB_PAT@github.com/sourcefuse/loopback4-microservice-catalog + git remote set-url origin https://$GITHUB_ACTOR:$GITHUB_PAT@github.com/sourcefuse/loopback4-ratelimiter env: GITHUB_PAT: ${{ secrets.RELEASE_COMMIT_GH_PAT }} CONFIG_USERNAME: ${{ vars.RELEASE_COMMIT_USERNAME }} @@ -48,3 +48,5 @@ jobs: env: GH_TOKEN: ${{ secrets.RELEASE_COMMIT_GH_PAT }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Changelog 📝 + run: cd src/release_notes && HUSKY=0 node release-notes.js diff --git a/package-lock.json b/package-lock.json index fbad8f0..201e6d0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "loopback4-ratelimiter", - "version": "6.0.1", + "version": "7.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "loopback4-ratelimiter", - "version": "6.0.1", + "version": "7.0.0", "license": "MIT", "dependencies": { "@loopback/boot": "^7.0.0", diff --git a/package.json b/package.json index f5000d2..64cfe3d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "loopback4-ratelimiter", "version": "7.0.0", - "description": "A rate limiting extension for loopback-next APIs", + "description": "A rate limiting extension for loopback-next APIs by ARC", "keywords": [ "loopback-extension", "loopback"