-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup npm-previews of all packages (#9118)
* add workflow * fix pkg jsons * workflow name * add changeset * fix * add changeset * fix build command --------- Co-authored-by: gradio-pr-bot <[email protected]>
- Loading branch information
1 parent
474102a
commit e1c404d
Showing
64 changed files
with
440 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
--- | ||
"@gradio/accordion": patch | ||
"@gradio/annotatedimage": patch | ||
"@gradio/atoms": patch | ||
"@gradio/audio": patch | ||
"@gradio/box": patch | ||
"@gradio/build": patch | ||
"@gradio/button": patch | ||
"@gradio/chatbot": patch | ||
"@gradio/checkbox": patch | ||
"@gradio/checkboxgroup": patch | ||
"@gradio/client": patch | ||
"@gradio/code": patch | ||
"@gradio/colorpicker": patch | ||
"@gradio/column": patch | ||
"@gradio/core": patch | ||
"@gradio/dataframe": patch | ||
"@gradio/dataset": patch | ||
"@gradio/datetime": patch | ||
"@gradio/downloadbutton": patch | ||
"@gradio/dropdown": patch | ||
"@gradio/fallback": patch | ||
"@gradio/file": patch | ||
"@gradio/fileexplorer": patch | ||
"@gradio/form": patch | ||
"@gradio/gallery": patch | ||
"@gradio/group": patch | ||
"@gradio/highlightedtext": patch | ||
"@gradio/html": patch | ||
"@gradio/icons": patch | ||
"@gradio/image": patch | ||
"@gradio/imageeditor": patch | ||
"@gradio/json": patch | ||
"@gradio/label": patch | ||
"@gradio/markdown": patch | ||
"@gradio/model3d": patch | ||
"@gradio/multimodaltextbox": patch | ||
"@gradio/nativeplot": patch | ||
"@gradio/number": patch | ||
"@gradio/paramviewer": patch | ||
"@gradio/plot": patch | ||
"@gradio/radio": patch | ||
"@gradio/row": patch | ||
"@gradio/simpledropdown": patch | ||
"@gradio/simpleimage": patch | ||
"@gradio/simpletextbox": patch | ||
"@gradio/slider": patch | ||
"@gradio/spa": patch | ||
"@gradio/state": patch | ||
"@gradio/statustracker": patch | ||
"@gradio/tabitem": patch | ||
"@gradio/tabs": patch | ||
"@gradio/textbox": patch | ||
"@gradio/theme": patch | ||
"@gradio/timer": patch | ||
"@gradio/tooltip": patch | ||
"@gradio/upload": patch | ||
"@gradio/uploadbutton": patch | ||
"@gradio/utils": patch | ||
"@gradio/video": patch | ||
"@gradio/wasm": patch | ||
"gradio": patch | ||
"gradio_test": patch | ||
--- | ||
|
||
feat:setup npm-previews of all packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: "npm" | ||
|
||
on: | ||
pull_request: | ||
|
||
env: | ||
CI: true | ||
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1" | ||
NODE_OPTIONS: "--max-old-space-size=4096" | ||
|
||
concurrency: | ||
group: "${{ github.event.pull_request.number }}-${{ github.ref_name }}-${{ github.workflow }}" | ||
cancel-in-progress: true | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
changes: | ||
permissions: | ||
contents: read | ||
pull-requests: read | ||
name: "changes" | ||
runs-on: ubuntu-latest | ||
outputs: | ||
should_run: ${{ steps.changes.outputs.should_run }} | ||
sha: ${{ steps.changes.outputs.sha }} | ||
pr_number: ${{ steps.changes.outputs.pr_number }} | ||
source_branch: ${{ steps.changes.outputs.source_branch }} | ||
source_repo: ${{ steps.changes.outputs.source_repo }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: "gradio-app/gradio/.github/actions/changes@main" | ||
id: changes | ||
with: | ||
filter: "js" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
preview: | ||
permissions: | ||
contents: read | ||
name: npm-previews | ||
runs-on: ubuntu-22.04 | ||
needs: changes | ||
if: needs.changes.outputs.should_run == 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: install dependencies | ||
uses: "gradio-app/gradio/.github/actions/install-frontend-deps@main" | ||
with: | ||
always_install_pnpm: true | ||
skip_build: true | ||
- name: build client | ||
run: pnpm --filter @gradio/client --filter @gradio/wasm --filter @gradio/preview build | ||
- name: publish npm previews | ||
run: pnpx pkg-pr-new publish './js/*' './client/js' --comment=off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.