-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: remove cached build and skip NPM release on GPR forced workflow * fix: repair exported variable is using interface but cannot be named error
- Loading branch information
1 parent
222926e
commit f74ec8e
Showing
3 changed files
with
18 additions
and
21 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@lukemorales/query-key-factory': patch | ||
--- | ||
|
||
Fix published types |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,15 +60,6 @@ jobs: | |
with: | ||
version: 7 | ||
|
||
- name: ♻️ Cache build files | ||
uses: actions/cache@v3 | ||
id: build-cache | ||
with: | ||
path: "**/dist" | ||
key: ${{ runner.os }}-build-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-build- | ||
- name: 🛠️ Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
|
@@ -91,6 +82,7 @@ jobs: | |
|
||
release: | ||
name: 🚀 Release to NPM | ||
if: github.event.inputs.forceGPR != 'true' | ||
runs-on: ubuntu-latest | ||
needs: build | ||
outputs: | ||
|
@@ -126,9 +118,6 @@ jobs: | |
cache: 'pnpm' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
# - name: 🗃️ Create .npmrc | ||
# run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc | ||
|
||
- name: 👤 Set git user | ||
run: | | ||
git config --global user.email "[email protected]" | ||
|
@@ -171,12 +160,6 @@ jobs: | |
path: "**/node_modules" | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
|
||
- name: ♻️ Load build files | ||
uses: actions/cache@v3 | ||
with: | ||
path: "**/dist" | ||
key: ${{ runner.os }}-build-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
|
||
- name: 🛠️ Setup Node for GPR | ||
uses: actions/setup-node@v3 | ||
with: | ||
|
@@ -189,6 +172,9 @@ jobs: | |
if: steps.pnpm-cache.outputs.cache-hit != 'true' | ||
run: pnpm install --prefer-offline | ||
|
||
- name: ⚒️ Build package | ||
run: pnpm run build | ||
|
||
- name: 🚀 Publish to GPR | ||
run: pnpm publish | ||
env: | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
export type QueryKey = readonly unknown[]; | ||
|
||
/** | ||
* @internal use QueryFunction from "@tanstack/query-core" instead | ||
*/ | ||
export type QueryFunction<T = unknown, TQueryKey extends QueryKey = QueryKey> = ( | ||
context: QueryFunctionContext<TQueryKey>, | ||
context?: QueryFunctionContext<TQueryKey>, | ||
) => T | Promise<T>; | ||
|
||
export interface QueryFunctionContext<TQueryKey extends QueryKey = QueryKey, TPageParam = any> { | ||
/** | ||
* @internal use QueryFunctionContext from "@tanstack/query-core" instead | ||
*/ | ||
export type QueryFunctionContext<TQueryKey extends QueryKey = QueryKey, TPageParam = any> = { | ||
queryKey: TQueryKey; | ||
signal?: AbortSignal; | ||
pageParam?: TPageParam; | ||
meta: QueryMeta | undefined; | ||
} | ||
}; | ||
|
||
type QueryMeta = Record<string, unknown>; |