Skip to content

Commit

Permalink
ci: Update GitHub workflows (#130)
Browse files Browse the repository at this point in the history
* ci: Update GitHub workflows

* Break formatting

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
lachlancollins and autofix-ci[bot] committed Jul 18, 2024
1 parent d07d40c commit cb9c292
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 9 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: autofix.ci # needed to securely identify the workflow

on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
autofix:
name: autofix
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Tools
uses: ./.github/setup
- name: Fix formatting
run: pnpm prettier:write
- name: Apply fixes
uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a
with:
commit-message: 'ci: apply automated fixes'
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Tools
uses: tanstack/config/.github/setup@main
uses: ./.github/setup
- name: Run Tests
run: pnpm run test:ci
- name: Publish
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: pr

on:
pull_request:
paths-ignore:
- 'docs/**'
- 'media/**'
- '**/*.md'

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
Expand All @@ -27,7 +23,7 @@ jobs:
with:
fetch-depth: 0
- name: Setup Tools
uses: tanstack/config/.github/setup@main
uses: ./.github/setup
- name: Get base and head commits for `nx affected`
uses: nrwl/nx-set-shas@v4
with:
Expand All @@ -43,6 +39,6 @@ jobs:
with:
fetch-depth: 0
- name: Setup Tools
uses: tanstack/config/.github/setup@main
uses: ./.github/setup
- name: Publish Previews
run: pnpx pkg-pr-new publish --pnpm --compact './packages/*' --no-template

0 comments on commit cb9c292

Please sign in to comment.