mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-24 10:54:04 +08:00
ae4277a9a8
* move files * commit the rest of the files * fix lockfile * fix workflow * fix type errors * fix tests * only run ci when certain files change * run correct test command in ci * version * fix pypi script --------- Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: Changesets
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'js/**'
|
|
- 'client/js/**'
|
|
- 'package.json'
|
|
- 'pnpm-lock.yaml'
|
|
env:
|
|
CI: true
|
|
PNPM_CACHE_FOLDER: .pnpm-store
|
|
jobs:
|
|
version:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout code repository
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v2.2.4
|
|
with:
|
|
version: 7
|
|
- name: setup node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
cache: pnpm
|
|
cache-dependency-path: pnpm-lock.yaml
|
|
node-version: 18
|
|
registry-url: "https://registry.npmjs.org"
|
|
- name: install dependencies
|
|
run: pnpm install
|
|
- name: Setup npmrc
|
|
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
|
|
- name: create and publish versions
|
|
uses: changesets/action@v1
|
|
with:
|
|
version: pnpm changeset version
|
|
commit: "chore: update versions"
|
|
title: "chore: update versions"
|
|
publish: pnpm ci:publish
|
|
env:
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |