Skip to content

Commit

Permalink
ci: update publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
rowellx68 committed Sep 19, 2024
1 parent d609851 commit 40ebefa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- feature/next

jobs:
publish:
Expand Down Expand Up @@ -50,7 +51,7 @@ jobs:
publish_storybook:
runs-on: ubuntu-latest
needs: publish
if: ${{ needs.publish.outputs.published == 'true' }}
if: ${{ needs.publish.outputs.published == 'true' && github.ref == 'refs/heads/main' }}
permissions:
contents: write
steps:
Expand Down

0 comments on commit 40ebefa

Please sign in to comment.