Skip to content

Commit

Permalink
chore: fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Oct 27, 2023
1 parent 53b73c0 commit 4e8ba9e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Publish
on:
workflow_call: null
push:
tags:
- "*"
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ jobs:
publish: npm run dummy-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Invoke publish.yml
if: steps.changesets.outputs.published == 'true'
uses: ./.github/workflows/publish.yaml
secrets: inherit
outputs:
changesets_published: ${{ steps.changesets.outputs.published }}
invoke_publish:
needs: [release]
if: ${{ success() && needs.release.outputs.changesets_published == 'true'}}
uses: ./.github/workflows/publish.yml
secrets: inherit

0 comments on commit 4e8ba9e

Please sign in to comment.