Skip to content

Commit

Permalink
chore: use bump on push
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-online committed May 7, 2024
1 parent 4c28a6c commit ce6ce72
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,20 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Set Version & Publish
if: ${{ !inputs.dry && github.event_name == 'workflow_dispatch' }}
run: |
yarn release-it --ci -i ${{ inputs.version }}
git push
- name: Bump Version & Publish
if: ${{ !inputs.dry }}
if: ${{ !inputs.dry && github.event_name == 'push' }}
run: |
yarn release-it --ci -i ${{ inputs.version }} &&
yarn release-it --ci
git push
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ce6ce72

Please sign in to comment.