Skip to content

Commit

Permalink
ci: auto-upload json schema on npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunattam committed Apr 30, 2024
1 parent 8335749 commit 2e72880
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/json-schema-upload.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: Upload JSON Schema

on: workflow_dispatch
on:
workflow_run:
workflows: [Publish packages]
types:
- completed

jobs:
upload:
name: Upload JSON Schema
timeout-minutes: 8
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
jobs:
publish:
name: Publish packages
# Update json-schema-upload.yml if you are changing the name above
timeout-minutes: 8
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 2e72880

Please sign in to comment.