Skip to content

Commit be50240

Browse files
authored
Merge pull request #56 from sourcefuse/GH-55
fix(ci-cd): add changelog generation step
2 parents 218548c + 230f003 commit be50240

File tree

4 files changed

+34
-5
lines changed

4 files changed

+34
-5
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: 4 additions & 2 deletions
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-kafka-client
2626
env:
2727
GITHUB_PAT: ${{ secrets.RELEASE_COMMIT_GH_PAT }}
2828
CONFIG_USERNAME: ${{ vars.RELEASE_COMMIT_USERNAME }}
@@ -47,4 +47,6 @@ jobs:
4747
run: HUSKY=0 npx semantic-release
4848
env:
4949
GH_TOKEN: ${{ secrets.RELEASE_COMMIT_GH_PAT }}
50-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
50+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
51+
- name: Changelog 📝
52+
run: cd src/release_notes && HUSKY=0 node release-notes.js

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "loopback4-kafka-client",
33
"version": "3.0.2",
4-
"description": "loopback client for integration with apache kafka.",
4+
"description": "loopback client for integration with apache kafka",
55
"keywords": [
66
"loopback-extension",
77
"loopback",

0 commit comments

Comments
 (0)