Skip to content

Commit

Permalink
fix(ci-cd): add changelog generation step (#116)
Browse files Browse the repository at this point in the history
* fix(ci-cd): add changelog generation step

add the missing ci checks for pr

GH-115

* fix(ci-cd): update remote origin url

rectify the remote origin url in release workflow

GH-115
  • Loading branch information
yeshamavani authored May 15, 2024
1 parent b198e51 commit 8a27ada
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/main.yaml
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
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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-vault
env:
GITHUB_PAT: ${{ secrets.RELEASE_COMMIT_GH_PAT }}
CONFIG_USERNAME: ${{ vars.RELEASE_COMMIT_USERNAME }}
Expand All @@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sourceloop/vault",
"version": "7.0.0",
"description": "An extension for HashiCorp's Vault in loopback-next",
"description": "An extension for HashiCorp's Vault in loopback-next.",
"keywords": [
"loopback-extension",
"loopback"
Expand Down

0 comments on commit 8a27ada

Please sign in to comment.