Skip to content
name: Update client and publish a new version
on:
pull_request:
# TODO: cron
branches:
- main
concurrency:
group: 'publish'
jobs:
check-update:
runs-on: ubuntu-latest
outputs:
latest: ${{ steps.check-update.outputs.latest }}
dev: ${{ steps.check-update.outputs.dev }}
integration: ${{ steps.check-update.outputs.dev }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
- name: Check for updates
id: check-update
run: yarn check-update
test-publish:
runs-on: ubuntu-latest
needs:
- check-update
steps:
- name: Update and publish latest
if: ${{ needs.check-update.outputs.latest != ''}}
run: echo "Latest"
- name: Update and publish dev
if: ${{ needs.check-update.outputs.dev != ''}}
run: echo "Latest"
- name: Update and publish integration
if: ${{ needs.check-update.outputs.integration != ''}}
run: echo "Latest"