From 9f492a7fff18a903444539513d2952ef4a9fa414 Mon Sep 17 00:00:00 2001 From: "Md. Muhtasim Fuad Fahim" Date: Mon, 10 Jun 2024 13:01:51 +0600 Subject: [PATCH] added npm-publish.yml with CI/CD automation pipeline --- .github/workflows/npm-publish.yml | 10 ++++++++++ CHANGELOG.md | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index bbd0037..8559353 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -24,6 +24,16 @@ jobs: - name: Update npm version run: npm version patch --no-git-tag-version + - name: Commit and push version changes + run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git add package.json + git commit -m 'ci: bump version' + git push + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Publish to npm run: npm publish env: diff --git a/CHANGELOG.md b/CHANGELOG.md index 57baf25..3e56f30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ All notable changes to the `lovemate` package will be documented in this file. ### Added -- Added `github workflows` to publish the main repository to NPM automatically. +- Added `github workflows` to publish the main repository to NPM automatically with CI/CD. ### Improved