diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 62d8c16434..8086316f89 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,17 +37,17 @@ jobs: - name: Stop Nx Agents if: ${{ always() }} run: npx nx-cloud stop-all-agents - - name: Check for Changesets marked as major - id: major - run: | - echo "found=false" >> $GITHUB_OUTPUT - regex="(major)" - shopt -s nullglob - for file in .changeset/*.md; do - if [[ $(cat $file) =~ $regex ]]; then - echo "found=true" >> $GITHUB_OUTPUT - fi - done + # - name: Check for Changesets marked as major + # id: major + # run: | + # echo "found=false" >> $GITHUB_OUTPUT + # regex="(major)" + # shopt -s nullglob + # for file in .changeset/*.md; do + # if [[ $(cat $file) =~ $regex ]]; then + # echo "found=true" >> $GITHUB_OUTPUT + # fi + # done - name: Run Changesets (version or publish) id: changesets uses: changesets/action@v1.5.3 @@ -59,18 +59,23 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - name: Auto-merge Changesets PR - if: steps.changesets.outputs.hasChangesets == 'true' && steps.major.outputs.found == 'false' - run: | - gh pr merge --squash "$PR_NUMBER" - gh api --method POST /repos/$REPO/dispatches -f 'event_type=release' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - REPO: ${{ github.repository }} - PR_NUMBER: ${{ steps.changesets.outputs.pullRequestNumber }} + # - name: Auto-merge Changesets PR + # if: steps.changesets.outputs.hasChangesets == 'true' && steps.major.outputs.found == 'false' + # run: | + # gh pr merge --squash "$PR_NUMBER" + # gh api --method POST /repos/$REPO/dispatches -f 'event_type=release' + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # REPO: ${{ github.repository }} + # PR_NUMBER: ${{ steps.changesets.outputs.pullRequestNumber }} - name: Upload coverage to Codecov uses: codecov/codecov-action@v4.6.0 with: directory: packages env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + - name: Comment on PRs about release + if: steps.changesets.outputs.published == 'true' + uses: tanstack/config/.github/comment-on-release@main + with: + published-packages: ${{ steps.changesets.outputs.publishedPackages }} diff --git a/knip.json b/knip.json index 963a8a723d..996a0a25a2 100644 --- a/knip.json +++ b/knip.json @@ -10,13 +10,15 @@ "@types/react", "@types/react-dom", "react", - "react-dom", - "markdown-link-extractor" + "react-dom" ], "ignoreWorkspaces": ["examples/**", "integrations/**"], "workspaces": { "packages/angular-query-experimental": { - "entry": ["src/index.ts", "src/inject-queries-experimental/index.ts"] + "entry": [ + "src/devtools/production/index.ts", + "src/devtools-panel/production/index.ts" + ] }, "packages/query-codemods": { "entry": ["src/v4/**/*.cjs", "src/v5/**/*.cjs"], @@ -25,12 +27,6 @@ "packages/vue-query": { "ignore": ["**/__mocks__/**"], "ignoreDependencies": ["vue2", "vue2.7"] - }, - "packages/angular-query-experimental": { - "entry": [ - "src/devtools/production/index.ts", - "src/devtools-panel/production/index.ts" - ] } } } diff --git a/packages/solid-query-devtools/package.json b/packages/solid-query-devtools/package.json index 8e308f16cd..e507449f65 100644 --- a/packages/solid-query-devtools/package.json +++ b/packages/solid-query-devtools/package.json @@ -39,7 +39,7 @@ "types": "./build/index.d.ts", "browser": {}, "exports": { - "@tanstack/custom-condition": "./src/index.ts", + "@tanstack/custom-condition": "./src/index.tsx", "solid": { "development": "./build/dev.jsx", "import": "./build/index.jsx"