We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0f2d01 commit eb2f58bCopy full SHA for eb2f58b
.github/workflows/npm-publish.yml
@@ -32,13 +32,16 @@ jobs:
32
git config --global user.name "github-actions"
33
git config --global user.email "[email protected]"
34
35
- - name: "Get version"
+ - name: "Bump patch version"
36
+ run: npm version patch
37
+
38
+ - name: "Get new version"
39
id: get_version
40
run: echo "version=v$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
41
- - name: "Push tags"
42
+ - name: "Push version bump commit and tag"
43
run: |
- git tag ${{ steps.get_version.outputs.version }}
44
+ git push origin HEAD
45
git push origin --tags
46
47
- name: "Publish to NPM"
0 commit comments