Skip to content

fix colulmn sizing test #124

fix colulmn sizing test

fix colulmn sizing test #124

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
tag:
description: override release tag
required: false
push:
branches: [main, alpha, beta, rc]
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
permissions:
contents: write
id-token: write
pull-requests: write
jobs:
release:
name: Release
if: github.repository_owner == 'TanStack'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 0
persist-credentials: true
- name: Start Nx Agents
run: npx nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yaml"
- name: Setup Tools
uses: tanstack/config/.github/setup@e4b48f16568324f76f467aa4c2aac2f05db632c3 # main
- name: Run Tests
run: pnpm run test:ci --parallel=3
- name: Stop Nx Agents
if: ${{ always() }}
run: npx nx-cloud stop-all-agents
- name: Prepare Release PR Branch
id: release-branch
run: |
branch="release/${GITHUB_REF_NAME}/version-bump-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
git switch -c "$branch"
git push --set-upstream origin "$branch"
echo "branch=$branch" >> "$GITHUB_OUTPUT"
- name: Publish
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
pnpm run cipublish
env:
BRANCH: ${{ github.ref_name }}
TAG: ${{ inputs.tag }}
- name: Open Version Bump Pull Request
run: |
if [[ "$(git rev-list --count "origin/${GITHUB_REF_NAME}..HEAD")" == "0" ]]; then
echo "No version bump commit was created; skipping pull request."
git push origin --delete "$RELEASE_BRANCH"
exit 0
fi
gh pr create \
--base "$GITHUB_REF_NAME" \
--head "$RELEASE_BRANCH" \
--title "release: version packages" \
--body "Automated version bump created after publishing packages."
env:
RELEASE_BRANCH: ${{ steps.release-branch.outputs.branch }}