| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3d2d96a commit 5596fcb
138 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,42 +1,54 @@ | |||
| 1 | 1 | name: ci | |
| 2 | + | ||
| 3 | + on: | ||
| 4 | + workflow_dispatch: | ||
| 5 | + inputs: | ||
| 6 | + tag: | ||
| 7 | + description: override release tag | ||
| 8 | + required: false | ||
| 9 | + push: | ||
| 10 | + branches: ['main', 'alpha', 'beta'] | ||
| 11 | + | ||
| 2 | 12 | concurrency: | |
| 3 | - group: publish-${{ github.github.base_ref }} | ||
| 13 | + group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | ||
| 4 | 14 | cancel-in-progress: true | |
| 15 | + | ||
| 5 | 16 | env: | |
| 6 | - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| 7 | 17 | NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
| 8 | - on: | ||
| 9 | - push: | ||
| 10 | - branches: | ||
| 11 | - - 'main' | ||
| 12 | - - 'beta' | ||
| 18 | + NX_CLOUD_AUTH_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }} | ||
| 19 | + | ||
| 13 | 20 | jobs: | |
| 14 | 21 | test-and-publish: | |
| 15 | - name: 'Test & Publish' | ||
| 22 | + name: Test & Publish | ||
| 23 | + if: github.repository == 'TanStack/router' | ||
| 16 | 24 | runs-on: ubuntu-latest | |
| 17 | 25 | steps: | |
| 18 | 26 | - name: Checkout | |
| 19 | 27 | uses: actions/checkout@v4 | |
| 20 | 28 | with: | |
| 21 | - fetch-depth: 0 | ||
| 29 | + fetch-depth: '0' | ||
| 22 | 30 | - name: Setup pnpm | |
| 23 | 31 | uses: pnpm/action-setup@v2 | |
| 24 | 32 | with: | |
| 25 | 33 | version: 8 | |
| 26 | 34 | - name: Setup Node | |
| 27 | 35 | uses: actions/setup-node@v4 | |
| 28 | 36 | with: | |
| 29 | - node-version-file: '.nvmrc' | ||
| 30 | - cache: 'pnpm' | ||
| 37 | + node-version-file: .nvmrc | ||
| 38 | + cache: pnpm | ||
| 31 | 39 | - name: Install dependencies | |
| 32 | - run: pnpm --filter "./packages/**" --prefer-offline install --no-frozen-lockfile | ||
| 40 | + run: pnpm install --frozen-lockfile --prefer-offline | ||
| 41 | + - name: Run Tests | ||
| 42 | + run: pnpm run test:ci | ||
| 33 | 43 | - name: Publish | |
| 34 | 44 | run: | | |
| 35 | 45 | git config --global user.name 'Tanner Linsley' | |
| 36 | 46 | git config --global user.email 'tannerlinsley@users.noreply.github.com' | |
| 37 | 47 | npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" | |
| 38 | - pnpm cipublish | ||
| 48 | + pnpm run cipublish | ||
| 39 | 49 | env: | |
| 40 | 50 | GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
| 41 | 51 | GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| 52 | + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| 42 | 53 | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| 54 | + TAG: ${{ inputs.tag }} | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,11 +1,23 @@ | |||
| 1 | 1 | name: pr | |
| 2 | - on: [pull_request] | ||
| 2 | + | ||
| 3 | + on: | ||
| 4 | + pull_request: | ||
| 5 | + paths-ignore: | ||
| 6 | + - 'docs/**' | ||
| 7 | + - 'media/**' | ||
| 8 | + - '**/*.md' | ||
| 9 | + | ||
| 10 | + concurrency: | ||
| 11 | + group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | ||
| 12 | + cancel-in-progress: true | ||
| 13 | + | ||
| 3 | 14 | env: | |
| 4 | - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| 5 | 15 | NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
| 16 | + NX_CLOUD_AUTH_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }} | ||
| 17 | + | ||
| 6 | 18 | jobs: | |
| 7 | 19 | test: | |
| 8 | - name: 'Test' | ||
| 20 | + name: Test | ||
| 9 | 21 | runs-on: ubuntu-latest | |
| 10 | 22 | steps: | |
| 11 | 23 | - name: Checkout | |
@@ -19,9 +31,13 @@ jobs: | |||
| 19 | 31 | - name: Setup Node | |
| 20 | 32 | uses: actions/setup-node@v4 | |
| 21 | 33 | with: | |
| 22 | - node-version-file: '.nvmrc' | ||
| 23 | - cache: 'pnpm' | ||
| 34 | + node-version-file: .nvmrc | ||
| 35 | + cache: pnpm | ||
| 24 | 36 | - name: Install dependencies | |
| 25 | - run: pnpm --filter "./packages/**" --prefer-offline install --no-frozen-lockfile | ||
| 26 | - - name: Build & Test | ||
| 27 | - run: npx nx run-many --targets=test,build --projects=@tanstack/* | ||
| 37 | + run: pnpm install --frozen-lockfile --prefer-offline | ||
| 38 | + - name: Get base and head commits for `nx affected` | ||
| 39 | + uses: nrwl/nx-set-shas@v3 | ||
| 40 | + with: | ||
| 41 | + main-branch-name: 'main' | ||
| 42 | + - name: Run Checks | ||
| 43 | + run: pnpm run test:pr | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,6 +9,7 @@ types | |||
| 9 | 9 | build | |
| 10 | 10 | */build | |
| 11 | 11 | dist | |
| 12 | + .output | ||
| 12 | 13 | lib | |
| 13 | 14 | es | |
| 14 | 15 | artifacts | |
@@ -51,4 +52,7 @@ nx-cloud.env | |||
| 51 | 52 | .vscode | |
| 52 | 53 | .nx | |
| 53 | 54 | ||
| 54 | - gpt/db.json | ||
| 55 | + gpt/db.json | ||
| 56 | + | ||
| 57 | + vite.config.js.timestamp-* | ||
| 58 | + vite.config.ts.timestamp-* | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1 @@ | |||
| 1 | - //registry.npmjs.org/:_authToken=${NPM_TOKEN} | ||
| 2 | - | ||
| 3 | - # Note, the settings in this file are ignored by pnpm if the NPM_TOKEN env variable is not set... | ||
| 4 | - # https://github.com/pnpm/pnpm/issues/5914 | ||
| 5 | - auto-install-peers=false | ||
| 1 | + prefer-workspace-packages=true | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,8 @@ | |||
| 1 | + **/.next | ||
| 2 | + **/.nx/cache | ||
| 3 | + **/.svelte-kit | ||
| 4 | + **/build | ||
| 5 | + **/coverage | ||
| 6 | + **/dist | ||
| 7 | + **/docs | ||
| 8 | + pnpm-lock.yaml | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - <!DOCTYPE html> | ||
| 1 | + <!doctype html> | ||
| 2 | 2 | <html lang="en"> | |
| 3 | 3 | <head> | |
| 4 | 4 | <meta charset="UTF-8" /> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,8 +10,8 @@ | |||
| 10 | 10 | }, | |
| 11 | 11 | "dependencies": { | |
| 12 | 12 | "@tanstack/react-query": "^5.17.8", | |
| 13 | - "@tanstack/react-router": "1.7.1", | ||
| 14 | - "@tanstack/router-devtools": "1.7.1", | ||
| 13 | + "@tanstack/react-router": "^1.7.1", | ||
| 14 | + "@tanstack/router-devtools": "^1.7.1", | ||
| 15 | 15 | "axios": "^1.6.5", | |
| 16 | 16 | "react": "^18.2.0", | |
| 17 | 17 | "react-dom": "^18.2.0" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - <!DOCTYPE html> | ||
| 1 | + <!doctype html> | ||
| 2 | 2 | <html lang="en"> | |
| 3 | 3 | <head> | |
| 4 | 4 | <meta charset="UTF-8" /> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments