Skip to content

Commit f15b7fc

Browse files
ci: prepare for trusted publishing (#9952)
* ci: prepare for trusted publishing * Format * Remove NPM_TOKEN
1 parent 5ad78fc commit f15b7fc

File tree

34 files changed

+479
-417
lines changed

34 files changed

+479
-417
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
blank_issues_enabled: false
22
contact_links:
3-
- name: Feature Requests & Questions
3+
- name: 🤔 Feature Requests & Questions
44
url: https://github.com/TanStack/query/discussions
55
about: Please ask and answer questions here.
6-
- name: Community Chat
6+
- name: 💬 Community Chat
77
url: https://discord.gg/mQd7egN
8-
about: A dedicated discord server hosted by Tanner Linsley
8+
about: A dedicated discord server hosted by TanStack
9+
- name: 🦋 TanStack Bluesky
10+
url: https://bsky.app/profile/tanstack.com
11+
about: Stay up to date with new releases of our libraries

.github/workflows/autofix.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v5.0.0
21+
uses: actions/checkout@v6.0.1
2222
with:
2323
fetch-depth: 0
2424
- name: Setup Tools
2525
uses: tanstack/config/.github/setup@main
2626
- name: Fix formatting
27-
run: pnpm run prettier:write
27+
run: pnpm run format
2828
- name: Apply fixes
2929
uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
3030
with:

.github/workflows/pr.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v5.0.0
23+
uses: actions/checkout@v6.0.1
2424
with:
2525
fetch-depth: 0
2626
- name: Start Nx Agents
2727
run: npx nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yaml"
2828
- name: Setup Tools
2929
uses: tanstack/config/.github/setup@main
3030
- name: Get base and head commits for `nx affected`
31-
uses: nrwl/nx-set-shas@v4.3.3
31+
uses: nrwl/nx-set-shas@v4.4.0
3232
with:
3333
main-branch-name: main
3434
- name: Run Checks
@@ -47,7 +47,7 @@ jobs:
4747
runs-on: ubuntu-latest
4848
steps:
4949
- name: Checkout
50-
uses: actions/checkout@v5.0.0
50+
uses: actions/checkout@v6.0.1
5151
with:
5252
fetch-depth: 0
5353
- name: Setup Tools
@@ -75,7 +75,7 @@ jobs:
7575
runs-on: ubuntu-latest
7676
steps:
7777
- name: Checkout
78-
uses: actions/checkout@v5.0.0
78+
uses: actions/checkout@v6.0.1
7979
with:
8080
fetch-depth: 0
8181
- name: Check Provenance

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- name: Checkout
28-
uses: actions/checkout@v5.0.0
28+
uses: actions/checkout@v6.0.1
2929
with:
3030
fetch-depth: 0
3131
- name: Start Nx Agents
@@ -58,7 +58,6 @@ jobs:
5858
title: 'ci: Version Packages'
5959
env:
6060
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6261
# - name: Auto-merge Changesets PR
6362
# if: steps.changesets.outputs.hasChangesets == 'true' && steps.major.outputs.found == 'false'
6463
# run: |

package.json

Lines changed: 9 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"private": true,
44
"repository": {
55
"type": "git",
6-
"url": "https://github.com/TanStack/query.git"
6+
"url": "git+https://github.com/TanStack/query.git"
77
},
88
"packageManager": "[email protected]",
99
"type": "module",
@@ -13,7 +13,6 @@
1313
"test:pr": "nx affected --targets=test:sherif,test:knip,test:docs,test:eslint,test:lib,test:types,test:build,build",
1414
"test:ci": "nx run-many --targets=test:sherif,test:knip,test:docs,test:eslint,test:lib,test:types,test:build,build",
1515
"test:eslint": "nx affected --target=test:eslint",
16-
"test:format": "pnpm run prettier --check",
1716
"test:sherif": "sherif -i typescript -p \"./integrations/*\" -p \"./examples/*\"",
1817
"test:lib": "nx affected --target=test:lib --exclude=examples/**",
1918
"test:lib:dev": "pnpm run test:lib && nx watch --all -- pnpm run test:lib",
@@ -25,17 +24,17 @@
2524
"build:all": "nx run-many --target=build --exclude=examples/** --exclude=integrations/**",
2625
"watch": "pnpm run build:all && nx watch --all -- pnpm run build:all",
2726
"dev": "pnpm run watch",
28-
"prettier": "prettier --experimental-cli --ignore-unknown '**/*'",
29-
"prettier:write": "pnpm run prettier --write",
27+
"format": "prettier --experimental-cli --ignore-unknown '**/*' --write",
3028
"generate-docs": "node scripts/generate-docs.ts",
3129
"changeset": "changeset",
32-
"changeset:version": "changeset version && pnpm install --no-frozen-lockfile && pnpm prettier:write",
30+
"changeset:version": "changeset version && pnpm install --no-frozen-lockfile && pnpm format",
3331
"changeset:publish": "changeset publish"
3432
},
3533
"nx": {
3634
"includedScripts": [
37-
"test:sherif",
38-
"test:knip"
35+
"test:docs",
36+
"test:knip",
37+
"test:sherif"
3938
]
4039
},
4140
"devDependencies": {
@@ -46,7 +45,7 @@
4645
"@svitejs/changesets-changelog-github-compact": "^1.2.0",
4746
"@tanstack/eslint-config": "0.3.2",
4847
"@tanstack/typedoc-config": "0.3.1",
49-
"@tanstack/vite-config": "0.4.1",
48+
"@tanstack/vite-config": "0.4.3",
5049
"@testing-library/jest-dom": "^6.8.0",
5150
"@types/node": "^22.15.3",
5251
"@types/react": "^19.2.7",
@@ -59,9 +58,9 @@
5958
"jsdom": "^27.0.0",
6059
"knip": "^5.63.1",
6160
"markdown-link-extractor": "^4.0.2",
62-
"nx": "21.5.3",
61+
"nx": "22.1.3",
6362
"premove": "^4.0.0",
64-
"prettier": "^3.6.2",
63+
"prettier": "^3.7.4",
6564
"prettier-plugin-svelte": "^3.4.0",
6665
"publint": "^0.3.13",
6766
"react": "^19.2.1",
@@ -83,28 +82,6 @@
8382
},
8483
"pnpm": {
8584
"overrides": {
86-
"@tanstack/angular-query-experimental": "workspace:*",
87-
"@tanstack/eslint-plugin-query": "workspace:*",
88-
"@tanstack/query-async-storage-persister": "workspace:*",
89-
"@tanstack/query-broadcast-client-experimental": "workspace:*",
90-
"@tanstack/query-codemods": "workspace:*",
91-
"@tanstack/query-core": "workspace:*",
92-
"@tanstack/query-devtools": "workspace:*",
93-
"@tanstack/query-persist-client-core": "workspace:*",
94-
"@tanstack/query-sync-storage-persister": "workspace:*",
95-
"@tanstack/query-test-utils": "workspace:*",
96-
"@tanstack/react-query": "workspace:*",
97-
"@tanstack/react-query-devtools": "workspace:*",
98-
"@tanstack/react-query-next-experimental": "workspace:*",
99-
"@tanstack/react-query-persist-client": "workspace:*",
100-
"@tanstack/solid-query": "workspace:*",
101-
"@tanstack/solid-query-devtools": "workspace:*",
102-
"@tanstack/solid-query-persist-client": "workspace:*",
103-
"@tanstack/svelte-query": "workspace:*",
104-
"@tanstack/svelte-query-devtools": "workspace:*",
105-
"@tanstack/svelte-query-persist-client": "workspace:*",
106-
"@tanstack/vue-query": "workspace:*",
107-
"@tanstack/vue-query-devtools": "workspace:*",
10885
"@types/react": "^19.0.1",
10986
"@types/react-dom": "^19.0.2"
11087
}

packages/angular-query-experimental/src/types.ts

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,22 @@ export interface CreateBaseQueryOptions<
2525
TQueryData = TQueryFnData,
2626
TQueryKey extends QueryKey = QueryKey,
2727
> extends QueryObserverOptions<
28-
TQueryFnData,
29-
TError,
30-
TData,
31-
TQueryData,
32-
TQueryKey
33-
> {}
28+
TQueryFnData,
29+
TError,
30+
TData,
31+
TQueryData,
32+
TQueryKey
33+
> {}
3434

3535
export interface CreateQueryOptions<
3636
TQueryFnData = unknown,
3737
TError = DefaultError,
3838
TData = TQueryFnData,
3939
TQueryKey extends QueryKey = QueryKey,
4040
> extends OmitKeyof<
41-
CreateBaseQueryOptions<
42-
TQueryFnData,
43-
TError,
44-
TData,
45-
TQueryFnData,
46-
TQueryKey
47-
>,
48-
'suspense'
49-
> {}
41+
CreateBaseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>,
42+
'suspense'
43+
> {}
5044

5145
type CreateStatusBasedQueryResult<
5246
TStatus extends QueryObserverResult['status'],
@@ -85,15 +79,15 @@ export interface CreateInfiniteQueryOptions<
8579
TQueryKey extends QueryKey = QueryKey,
8680
TPageParam = unknown,
8781
> extends OmitKeyof<
88-
InfiniteQueryObserverOptions<
89-
TQueryFnData,
90-
TError,
91-
TData,
92-
TQueryKey,
93-
TPageParam
94-
>,
95-
'suspense'
96-
> {}
82+
InfiniteQueryObserverOptions<
83+
TQueryFnData,
84+
TError,
85+
TData,
86+
TQueryKey,
87+
TPageParam
88+
>,
89+
'suspense'
90+
> {}
9791

9892
export type CreateBaseQueryResult<
9993
TData = unknown,
@@ -135,9 +129,9 @@ export interface CreateMutationOptions<
135129
TVariables = void,
136130
TOnMutateResult = unknown,
137131
> extends OmitKeyof<
138-
MutationObserverOptions<TData, TError, TVariables, TOnMutateResult>,
139-
'_defaulted'
140-
> {}
132+
MutationObserverOptions<TData, TError, TVariables, TOnMutateResult>,
133+
'_defaulted'
134+
> {}
141135

142136
export type CreateMutateFunction<
143137
TData = unknown,

packages/angular-query-persist-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"license": "MIT",
88
"repository": {
99
"type": "git",
10-
"url": "https://github.com/TanStack/query.git",
10+
"url": "git+https://github.com/TanStack/query.git",
1111
"directory": "packages/angular-query-persist-client"
1212
},
1313
"homepage": "https://tanstack.com/query",

packages/query-async-storage-persister/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "MIT",
77
"repository": {
88
"type": "git",
9-
"url": "https://github.com/TanStack/query.git",
9+
"url": "git+https://github.com/TanStack/query.git",
1010
"directory": "packages/query-async-storage-persister"
1111
},
1212
"homepage": "https://tanstack.com/query",

packages/query-broadcast-client-experimental/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "MIT",
77
"repository": {
88
"type": "git",
9-
"url": "https://github.com/TanStack/query.git",
9+
"url": "git+https://github.com/TanStack/query.git",
1010
"directory": "packages/query-broadcast-client-experimental"
1111
},
1212
"homepage": "https://tanstack.com/query",

packages/query-codemods/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "MIT",
77
"repository": {
88
"type": "git",
9-
"url": "https://github.com/TanStack/query.git",
9+
"url": "git+https://github.com/TanStack/query.git",
1010
"directory": "packages/query-codemods"
1111
},
1212
"homepage": "https://tanstack.com/query",

0 commit comments

Comments
 (0)