Skip to content

Commit

Permalink
added npm-publish.yml with CI/CD automation pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmuhtasimfuadfahim committed Jun 10, 2024
1 parent 0f321be commit 9f492a7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9f492a7

Please sign in to comment.