Skip to content

Commit

Permalink
ci: only push on successful publish
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjavi committed Aug 31, 2024
1 parent dc3b1cc commit 1c49335
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ jobs:
- name: "Increase build versions"
run: pnpm release --tag-prefix --commit-all

- name: "Push new version to git"
run: |
git add .
git push --follow-tags
# Uncomment when we have a package to publish
- name: "Publish package"
env:
Expand All @@ -52,6 +47,11 @@ jobs:
NPM_CONFIG_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm publish --no-git-checks

- name: "Push new version to git"
run: |
git add .
git push --follow-tags
publishStorybook:
name: "Publish Storybook to GitHub Pages"
runs-on: ubuntu-latest
Expand Down

0 comments on commit 1c49335

Please sign in to comment.