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