Skip to content

Commit

Permalink
Fixed workflow events (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonahPlusPlus authored Nov 12, 2024
1 parent 04ed357 commit 546e301
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 8 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/solid-vite.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
name: Solid Vite Pipeline
on:
workflow_run:
workflows: ['Solid Renderer Pipeline']
types:
- completed
branches:
- main
workflow_call:
inputs:
publish:
description: Publish?
required: false
type: boolean
workflow_dispatch:
inputs:
publish:
description: Publish?
required: false
type: boolean
defaults:
run:
working-directory: packages/frameworks/solid-vite
Expand All @@ -20,7 +26,7 @@ jobs:
run: yarn check
working-directory: packages/frameworks/solid-vite
- name: Publish to NPM
if: github.event_name == 'release'
if: inputs.publish
run: yarn npm publish
working-directory: packages/frameworks/solid-vite
env:
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/solid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ on:
types: [published]
branches:
- main
workflow_dispatch:
inputs:
publish:
description: Publish?
required: false
type: boolean
defaults:
run:
working-directory: packages/renderers/solid
Expand All @@ -28,8 +34,13 @@ jobs:
run: yarn check
working-directory: packages/renderers/solid
- name: Publish to NPM
if: github.event_name == 'release'
if: github.event_name == 'release' || inputs.publish
run: yarn npm publish
working-directory: packages/renderers/solid
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
solid-vite-workflow:
needs: solid-workflow
uses: ./.github/workflows/solid-vite.yml
with:
publish: ${{ github.event_name == 'release' || inputs.publish }}

0 comments on commit 546e301

Please sign in to comment.