-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
426d83f
commit 71b4cee
Showing
3 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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:[email protected]/sourcefuse/loopback4-microservice-catalog | ||
git remote set-url origin https://$GITHUB_ACTOR:[email protected]/sourcefuse/loopback4-soft-delete | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters