Skip to content

Commit 4ac32a1

Browse files
ci: update github workflows (#295)
* ci: update github workflows * Remove fetch-depth
1 parent 7bd37af commit 4ac32a1

3 files changed

Lines changed: 26 additions & 17 deletions

File tree

.github/workflows/autofix.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v6.0.1
22-
with:
23-
fetch-depth: 0
21+
uses: actions/checkout@v6.0.2
2422
- name: Setup Tools
25-
uses: tanstack/config/.github/setup@main
23+
uses: TanStack/config/.github/setup@main
2624
- name: Fix formatting
2725
run: pnpm format
2826
- name: Generate Docs

.github/workflows/pr.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,21 @@ env:
1212

1313
permissions:
1414
contents: read
15+
pull-requests: write
1516

1617
jobs:
1718
test:
1819
name: Test
1920
runs-on: ubuntu-latest
2021
steps:
2122
- name: Checkout
22-
uses: actions/checkout@v6.0.1
23+
uses: actions/checkout@v6.0.2
2324
with:
2425
fetch-depth: 0
2526
- name: Start Nx Agents
2627
run: npx nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yaml"
2728
- name: Setup Tools
28-
uses: tanstack/config/.github/setup@main
29+
uses: TanStack/config/.github/setup@main
2930
- name: Get base and head commits for `nx affected`
3031
uses: nrwl/nx-set-shas@v4.4.0
3132
with:
@@ -40,11 +41,9 @@ jobs:
4041
runs-on: ubuntu-latest
4142
steps:
4243
- name: Checkout
43-
uses: actions/checkout@v6.0.1
44-
with:
45-
fetch-depth: 0
44+
uses: actions/checkout@v6.0.2
4645
- name: Setup Tools
47-
uses: tanstack/config/.github/setup@main
46+
uses: TanStack/config/.github/setup@main
4847
- name: Build Packages
4948
run: pnpm run build:all
5049
- name: Publish Previews
@@ -54,10 +53,18 @@ jobs:
5453
runs-on: ubuntu-latest
5554
steps:
5655
- name: Checkout
57-
uses: actions/checkout@v6.0.1
58-
with:
59-
fetch-depth: 0
56+
uses: actions/checkout@v6.0.2
6057
- name: Check Provenance
6158
uses: danielroe/provenance-action@v0.1.1
6259
with:
6360
fail-on-downgrade: true
61+
version-preview:
62+
name: Version Preview
63+
runs-on: ubuntu-latest
64+
steps:
65+
- name: Checkout
66+
uses: actions/checkout@v6.0.2
67+
- name: Setup Tools
68+
uses: TanStack/config/.github/setup@main
69+
- name: Changeset Preview
70+
uses: TanStack/config/.github/changeset-preview@main

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,23 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v6.0.1
26+
uses: actions/checkout@v6.0.2
2727
with:
2828
fetch-depth: 0
2929
- name: Setup Tools
30-
uses: tanstack/config/.github/setup@main
30+
uses: TanStack/config/.github/setup@main
3131
- name: Run Tests
3232
run: pnpm run test:ci
3333
- name: Run Changesets (version or publish)
34+
id: changesets
3435
uses: changesets/action@v1.7.0
3536
with:
3637
version: pnpm run changeset:version
3738
publish: pnpm run changeset:publish
3839
commit: 'ci: Version Packages'
3940
title: 'ci: Version Packages'
40-
env:
41-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
- name: Comment on PRs about release
42+
if: steps.changesets.outputs.published == 'true'
43+
uses: TanStack/config/.github/comment-on-release@main
44+
with:
45+
published-packages: ${{ steps.changesets.outputs.publishedPackages }}

0 commit comments

Comments
 (0)