Skip to content

chore: update versions #39

chore: update versions

chore: update versions #39

Workflow file for this run

name: publish
on:
push:
branches:
- main
env:
CI: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-publish
cancel-in-progress: true
jobs:
build-n-publish:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Checkout Code Repository
if: |
github.event.head_commit.message == 'chore: update versions'
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.12
if: |
github.event.head_commit.message == 'chore: update versions'
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Python Dependencies
if: |
github.event.head_commit.message == 'chore: update versions'
run: pip install gradio twine build
- name: Setup Node.js
if: |
github.event.head_commit.message == 'chore: update versions'
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install Pnpm
if: |
github.event.head_commit.message == 'chore: update versions'
run: npm i pnpm@latest -g
- name: Install Node Dependencies
if: |
github.event.head_commit.message == 'chore: update versions'
run: pnpm install
# - name: Create Release Pull Request to Update Versions
# id: changesets
# uses: changesets/action@v1
# with:
# version: pnpm run ci:version
# title: 'chore: update versions'
# commit: 'chore: update versions'
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build Packages and Publish to PyPI
# if: steps.changesets.outputs.hasChangesets != 'true'
if: |
github.event.head_commit.message == 'chore: update versions'
id: publish
run: pnpm run ci:publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
- name: Create Tag and Release
if: steps.publish.outputs.published == 'true'
run: pnpm run ci:create-tag-n-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.event.repository.name }}
OWNER: ${{ github.repository_owner }}