feat(sanity)!: add Angular 22 support #218
Workflow file for this run
This file contains hidden or 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
| name: autofix.ci | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| env: | |
| TURBO_TELEMETRY_DISABLED: '1' | |
| jobs: | |
| autofix: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Configure Turbo affected base | |
| run: echo "TURBO_SCM_BASE=origin/${GITHUB_BASE_REF}" >> "$GITHUB_ENV" | |
| - uses: pnpm/action-setup@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: 'pnpm' | |
| - run: pnpm install | |
| - name: Check if sanity is affected | |
| id: check-sanity | |
| shell: bash | |
| run: | | |
| affected_tasks="$(pnpm turbo run build --filter=@limitless-angular/sanity --affected --dry=json | jq -r '.tasks[].taskId')" | |
| if [ -n "$affected_tasks" ]; then | |
| echo "is_affected=true" >> $GITHUB_OUTPUT | |
| echo "Sanity package is affected by Turbo tasks:" | |
| printf '%s\n' "$affected_tasks" | |
| else | |
| echo "is_affected=false" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Run pkg-pr-new publish | |
| if: steps.check-sanity.outputs.is_affected == 'true' | |
| run: | | |
| echo "Building sanity" | |
| pnpm turbo run build --filter=@limitless-angular/sanity | |
| echo "Preparing sanity package for preview publishing" | |
| pnpm --filter=@limitless-angular/angular-compat run --silent compat:prepare-publish -- --package-root './dist/packages/sanity' | |
| echo "Running pkg-pr-new publish" | |
| pnpx pkg-pr-new publish --compact './dist/packages/sanity' | |
| - run: pnpm turbo run lint --affected -- --fix | |
| - run: pnpm format:write | |
| - uses: autofix-ci/action@v1.3.4 |