Skip to content

Commit 9aff9a4

Browse files
committed
chore(ci): harden workflows and bump packageManager to pnpm@11.1.1
1 parent ac1b030 commit 9aff9a4

4 files changed

Lines changed: 16 additions & 9 deletions

File tree

.github/workflows/autofix.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,19 @@ jobs:
1616
autofix:
1717
name: autofix
1818
runs-on: ubuntu-latest
19+
timeout-minutes: 20
1920
steps:
2021
- name: Checkout
21-
uses: actions/checkout@v6.0.2
22+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23+
with:
24+
persist-credentials: false
2225
- name: Setup Tools
2326
uses: TanStack/config/.github/setup@e4b48f16568324f76f467aa4c2aac2f05db632c3
2427
- name: Fix formatting
2528
run: pnpm run format
2629
- name: Regenerate docs
2730
run: pnpm build:all && pnpm generate-docs
2831
- name: Apply fixes
29-
uses: autofix-ci/action@7a166d7532b277f34e16238930461bf77f9d7ed8
32+
uses: autofix-ci/action@7a166d7532b277f34e16238930461bf77f9d7ed8 # v1
3033
with:
3134
commit-message: 'ci: apply automated fixes'

.github/workflows/pr.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,31 @@ jobs:
2121
test:
2222
name: Test
2323
runs-on: ubuntu-latest
24+
timeout-minutes: 20
2425
steps:
2526
- name: Checkout
26-
uses: actions/checkout@v6.0.2
27+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2728
with:
2829
fetch-depth: 0
30+
persist-credentials: false
2931
- name: Setup Tools
3032
uses: TanStack/config/.github/setup@e4b48f16568324f76f467aa4c2aac2f05db632c3
3133
- name: Get base and head commits for `nx affected`
32-
uses: nrwl/nx-set-shas@v4.4.0
34+
uses: nrwl/nx-set-shas@3e9ad7370203c1e93d109be57f3b72eb0eb511b1 # v4.4.0
3335
with:
3436
main-branch-name: main
3537
- name: Run Checks
3638
run: pnpm run test:pr
3739
preview:
3840
name: Preview
3941
runs-on: ubuntu-latest
42+
timeout-minutes: 20
4043
steps:
4144
- name: Checkout
42-
uses: actions/checkout@v6.0.2
45+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4346
with:
4447
fetch-depth: 0
48+
persist-credentials: false
4549
- name: Setup Tools
4650
uses: TanStack/config/.github/setup@e4b48f16568324f76f467aa4c2aac2f05db632c3
4751
- name: Build Packages

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66

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

1110
env:
1211
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
@@ -21,17 +20,18 @@ jobs:
2120
name: Release
2221
if: github.repository_owner == 'TanStack'
2322
runs-on: ubuntu-latest
23+
timeout-minutes: 40
2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v6.0.2
26+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2727
with:
2828
fetch-depth: 0
2929
- name: Setup Tools
3030
uses: TanStack/config/.github/setup@e4b48f16568324f76f467aa4c2aac2f05db632c3
3131
- name: Run Tests
3232
run: pnpm run test:ci
3333
- name: Run Changesets (version or publish)
34-
uses: changesets/action@v1.8.0
34+
uses: changesets/action@63a615b9cd06ba9a3e6d13796c7fbcb080a60a0b # v1.8.0
3535
with:
3636
version: pnpm run changeset:version
3737
publish: pnpm run changeset:publish

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "git",
66
"url": "git+https://github.com/TanStack/pacer.git"
77
},
8-
"packageManager": "pnpm@11.1.0",
8+
"packageManager": "pnpm@11.1.1+sha512.d1fdf5f73c617b64fa1a56a81c3c8dfe0e966e33a6010aa256b517ae77be21d93e05affc0de1a83b0e4f29d569f68b446ae8f068cd7247c0bb3df0fb4d7bdf9a",
99
"type": "module",
1010
"scripts": {
1111
"build": "nx affected --skip-nx-cache --targets=build --exclude=examples/** && size-limit && pnpm run",

0 commit comments

Comments
 (0)