Skip to content

Commit 4d241a2

Browse files
authored
fix(ci-cd): add step for changelog generation (#188)
add the missing ci checks for pr GH-187
1 parent aba4904 commit 4d241a2

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

.github/workflows/main.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
# This workflow contains a single job called "npm_test"
10+
jobs:
11+
npm_test:
12+
# The type of runner that the job will run on
13+
runs-on: ubuntu-latest
14+
15+
# Steps represent a sequence of tasks that will be executed as part of the job
16+
steps:
17+
# Checks-out your repository under $GITHUB_WORKSPACE
18+
- uses: actions/checkout@v3
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: '18.x'
22+
23+
- name: Install Dependencies 📌
24+
run: npm ci
25+
26+
- name: Run Test Cases 🔧
27+
run: npm run test

.github/workflows/release.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: |
2323
git config --global user.name $CONFIG_USERNAME
2424
git config --global user.email $CONFIG_EMAIL
25-
git remote set-url origin https://$GITHUB_ACTOR:$GITHUB_PAT@github.com/sourcefuse/loopback4-microservice-catalog
25+
git remote set-url origin https://$GITHUB_ACTOR:$GITHUB_PAT@github.com/sourcefuse/loopback4-notifications
2626
env:
2727
GITHUB_PAT: ${{ secrets.RELEASE_COMMIT_GH_PAT }}
2828
CONFIG_USERNAME: ${{ vars.RELEASE_COMMIT_USERNAME }}
@@ -48,3 +48,5 @@ jobs:
4848
env:
4949
GH_TOKEN: ${{ secrets.RELEASE_COMMIT_GH_PAT }}
5050
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
51+
- name: Changelog 📝
52+
run: cd src/release_notes && HUSKY=0 node release-notes.js

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "loopback4-notifications",
33
"version": "8.0.0",
4-
"description": "An extension for setting up various notification mechanisms in loopback4 application, vis-a-vis, Push notification, SMS notification, Email notification.",
4+
"description": "An extension for setting up various notification mechanisms in loopback4 application, vis-a-vis, Push notification, SMS notification, Email notification",
55
"keywords": [
66
"loopback-extension",
77
"loopback"

0 commit comments

Comments
 (0)