Skip to content

Commit 71b4cee

Browse files
authored
fix(ci-cd): add step to generate changelog (#212)
add the missing ci checks for pr GH-211 ## Description add step to generate changelog add the missing ci checks for pr Fixes #211 ## Type of change Please delete options that are not relevant. - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Intermediate change (work in progress) ## Checklist: - [ ] Performed a self-review of my own code - [ ] npm test passes on your machine - [ ] New tests added or existing tests modified to cover all changes - [ ] Code conforms with the style guide - [ ] API Documentation in code was updated
1 parent 426d83f commit 71b4cee

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

.github/workflows/main.yaml

+27
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

+3-1
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:[email protected]/sourcefuse/loopback4-microservice-catalog
25+
git remote set-url origin https://$GITHUB_ACTOR:[email protected]/sourcefuse/loopback4-soft-delete
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "loopback4-soft-delete",
33
"version": "10.0.0",
44
"author": "Sourcefuse",
5-
"description": "A loopback-next extension for soft delete feature",
5+
"description": "A loopback-next extension for soft delete feature.",
66
"keywords": [
77
"loopback-extension",
88
"loopback"

0 commit comments

Comments
 (0)