Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed workflow events #14

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}