Skip to content

Commit 49334c9

Browse files
ci: prepare for trusted publishing (#1087)
* ci: prepare for trusted publishing * Update PR template * Update pnpm-lock * Remove @tanstack/config * Upgrade @tanstack/eslint-config
1 parent f6cf04b commit 49334c9

File tree

25 files changed

+206
-506
lines changed

25 files changed

+206
-506
lines changed

.changeset/config.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://unpkg.com/@changesets/[email protected].1/schema.json",
2+
"$schema": "https://unpkg.com/@changesets/[email protected].2/schema.json",
33
"changelog": [
44
"@svitejs/changesets-changelog-github-compact",
55
{ "repo": "TanStack/virtual" }
@@ -10,5 +10,8 @@
1010
"updateInternalDependencies": "patch",
1111
"fixed": [],
1212
"linked": [],
13-
"ignore": []
13+
"ignore": [],
14+
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
15+
"onlyUpdatePeerDependentsWhenOutOfRange": true
16+
}
1417
}

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
github: tannerlinsley
2-
custom: https://youtube.com/tannerlinsley

.github/pull_request_template.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
## 🎯 Changes
22

3-
<!-- What changes are made in this PR? Is it a feature or a package submission? -->
3+
<!-- What changes are made in this PR? Describe the change and its motivation. -->
44

55
## ✅ Checklist
66

7-
- [ ] I have followed the steps listed in the [Contributing guide](https://github.com/TanStack/config/blob/main/CONTRIBUTING.md).
8-
- [ ] I have tested and linted this code locally.
9-
- [ ] I have generated a [changeset](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md) for this PR, or this PR should not release a new version.
7+
- [ ] I have followed the steps in the [Contributing guide](https://github.com/TanStack/virtual/blob/main/CONTRIBUTING.md).
8+
- [ ] I have tested this code locally with `pnpm run test:pr`.
9+
10+
## 🚀 Release Impact
11+
12+
- [ ] This change affects published code, and I have generated a [changeset](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md).
13+
- [ ] This change is docs/CI/dev-only (no release).

.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 prettier:write
27+
run: pnpm format
2828
- name: Apply fixes
2929
uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef
3030
with:

.github/workflows/pr.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v5.0.0
22+
uses: actions/checkout@v6.0.1
2323
with:
2424
fetch-depth: 0
2525
- name: Setup Tools
2626
uses: tanstack/config/.github/setup@main
2727
- name: Get base and head commits for `nx affected`
28-
uses: nrwl/nx-set-shas@v4.3.0
28+
uses: nrwl/nx-set-shas@v4.4.0
2929
with:
3030
main-branch-name: main
3131
- name: Install Playwright browsers
@@ -37,7 +37,7 @@ jobs:
3737
runs-on: ubuntu-latest
3838
steps:
3939
- name: Checkout
40-
uses: actions/checkout@v5.0.0
40+
uses: actions/checkout@v6.0.1
4141
with:
4242
fetch-depth: 0
4343
- name: Setup Tools
@@ -46,3 +46,15 @@ jobs:
4646
run: pnpm run build:all
4747
- name: Publish Previews
4848
run: pnpx pkg-pr-new publish --pnpm --compact './packages/*' --template './examples/*/*'
49+
provenance:
50+
name: Provenance
51+
runs-on: ubuntu-latest
52+
steps:
53+
- name: Checkout
54+
uses: actions/[email protected]
55+
with:
56+
fetch-depth: 0
57+
- name: Check Provenance
58+
uses: danielroe/[email protected]
59+
with:
60+
fail-on-downgrade: true

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v5.0.0
26+
uses: actions/checkout@v6.0.1
2727
with:
2828
fetch-depth: 0
2929
- name: Setup Tools
@@ -41,4 +41,3 @@ jobs:
4141
title: 'ci: Version Packages'
4242
env:
4343
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @ts-check
22

3-
import { tanstackConfig } from '@tanstack/config/eslint'
3+
import { tanstackConfig } from '@tanstack/eslint-config'
44

55
export default [
66
...tanstackConfig,

examples/svelte/dynamic/src/App.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
<main>
1111
<p>
1212
These components are using <strong>dynamic</strong> sizes. This means that each
13-
element's exact dimensions are unknown when rendered. An estimated dimension
14-
is used as the initial measurement, then this measurement is readjusted on the
15-
fly as each element is rendered.
13+
element's exact dimensions are unknown when rendered. An estimated dimension is
14+
used as the initial measurement, then this measurement is readjusted on the fly
15+
as each element is rendered.
1616
</p>
1717
<nav>
1818
<ul>

nx.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{
22
"$schema": "./node_modules/nx/schemas/nx-schema.json",
33
"defaultBase": "main",
4-
"nxCloudAccessToken": "ZjRlNGQyYjgtYmQ2NS00ZjNkLTgwZTktNGQ2YzEwZmRlNzQ3fHJlYWQ=",
4+
"nxCloudId": "65d1330edb0c1e7def5cb068",
55
"useInferencePlugins": false,
66
"parallel": 5,
7+
"tui": {
8+
"enabled": false
9+
},
710
"namedInputs": {
811
"sharedGlobals": [
912
"{workspaceRoot}/.nvmrc",

package.json

Lines changed: 10 additions & 11 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/virtual.git"
6+
"url": "git+https://github.com/TanStack/virtual.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:e2e,test:types,test:build,build",
1414
"test:ci": "nx run-many --targets=test:sherif,test:knip,test:docs,test:eslint,test:lib,test:e2e,test:types,test:build,build",
1515
"test:eslint": "nx affected --target=test:eslint",
16-
"test:format": "pnpm run prettier --check",
1716
"test:sherif": "sherif",
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",
@@ -26,10 +25,9 @@
2625
"build:all": "nx run-many --target=build --exclude=examples/**",
2726
"watch": "pnpm run build:all && nx watch --all -- pnpm run build:all",
2827
"dev": "pnpm run watch",
29-
"prettier": "prettier --ignore-unknown '**/*'",
30-
"prettier:write": "pnpm run prettier --write",
28+
"format": "prettier --experimental-cli --ignore-unknown '**/*' --write",
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": {
@@ -40,22 +38,23 @@
4038
]
4139
},
4240
"devDependencies": {
43-
"@changesets/cli": "^2.29.7",
41+
"@changesets/cli": "^2.29.8",
4442
"@playwright/test": "^1.53.1",
4543
"@svitejs/changesets-changelog-github-compact": "^1.2.0",
46-
"@tanstack/config": "^0.20.2",
44+
"@tanstack/eslint-config": "0.3.4",
45+
"@tanstack/vite-config": "0.3.0",
4746
"@testing-library/jest-dom": "^6.6.3",
4847
"@types/node": "^24.5.2",
4948
"eslint": "^9.36.0",
5049
"jsdom": "^27.0.0",
5150
"knip": "^5.63.1",
5251
"markdown-link-extractor": "^4.0.2",
53-
"nx": "^21.5.3",
52+
"nx": "22.1.3",
5453
"premove": "^4.0.0",
55-
"prettier": "^3.6.2",
54+
"prettier": "^3.7.4",
5655
"prettier-plugin-svelte": "^3.4.0",
57-
"publint": "^0.3.13",
58-
"sherif": "^1.6.1",
56+
"publint": "^0.3.15",
57+
"sherif": "^1.9.0",
5958
"tinyglobby": "^0.2.15",
6059
"typescript": "5.4.5",
6160
"vite": "^5.4.19",

0 commit comments

Comments
 (0)