Skip to content

Commit

Permalink
fix workfl9ow
Browse files Browse the repository at this point in the history
  • Loading branch information
PranavBarthwal committed Oct 6, 2024
1 parent 38e205a commit 0b15677
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,27 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '16'
registry-url: 'https://registry.npmjs.org/'

- name: Install dependencies
run: npm install

- name: Bump version

- name: Commit uncommitted changes
run: |
npm version patch # Automatically bump the patch version
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git commit -am "chore(release): bump version" # Commit the version bump
git push origin main # Push the changes to GitHub
git add . # Add all uncommitted changes
git commit -m "chore: commit uncommitted changes" || echo "No changes to commit"
- name: Bump version
run: |
npm version patch # Automatically bump the patch version
git push origin main # Push the version bump to GitHub
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 0b15677

Please sign in to comment.