Skip to content

Commit 2e816e9

Browse files
committed
💚 tag issue
1 parent f6f8c44 commit 2e816e9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎.github/workflows/npm-publish.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@ jobs:
3434
node-version: 12
3535
registry-url: https://registry.npmjs.org/
3636
- run: npm install
37-
- run: npm version ${{env.PACKAGE_VERSION}}
37+
- name: Bump version for release trigger
38+
if: ${{ github.event_name == 'release' }}
39+
run: |
40+
npm --no-git-tag-version version ${{env.PACKAGE_VERSION}}
41+
git add .
42+
git commit ${{env.PACKAGE_VERSION}}
43+
- name: Bump version for workflow dispatch
44+
if: ${{ github.event_name == 'workflow_dispatch' }}
45+
run: npm version ${{env.PACKAGE_VERSION}}
3846
- run: npm publish --access public
3947
env:
4048
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)