We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6f8c44 commit 2e816e9Copy full SHA for 2e816e9
‎.github/workflows/npm-publish.yml
@@ -34,7 +34,15 @@ jobs:
34
node-version: 12
35
registry-url: https://registry.npmjs.org/
36
- run: npm install
37
- - run: npm version ${{env.PACKAGE_VERSION}}
+ - 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}}
46
- run: npm publish --access public
47
env:
48
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
0 commit comments