Skip to content

Commit 0660d43

Browse files
Add auto-bump patch version step in workflow
Added step to auto-bump patch version before publishing.
1 parent 1819870 commit 0660d43

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ jobs:
4343
node-version: 20
4444
registry-url: 'https://registry.npmjs.org'
4545

46+
# Auto-bump patch version
47+
- name: Bump npm version
48+
run: |
49+
npm version patch --no-git-tag-version
50+
echo "Publishing version: $(node -p \"require('./package.json').version\")"
51+
4652
# Publish to npm
4753
- name: Publish package
4854
env:

0 commit comments

Comments
 (0)