Skip to content

Commit 6fd8bff

Browse files
Update ci.yml
1 parent 062b854 commit 6fd8bff

File tree

4 files changed

+20
-14
lines changed

4 files changed

+20
-14
lines changed

.changeset/clean-rats-fall.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/config': patch
3+
---
4+
5+
demo changesets

.changeset/config.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
33
"changelog": ["@changesets/changelog-github", { "repo": "TanStack/config" }],
44
"commit": false,
5-
"fixed": [],
6-
"linked": [],
7-
"ignore": [],
85
"access": "public",
96
"baseBranch": "main",
10-
"updateInternalDependencies": "patch"
7+
"updateInternalDependencies": "patch",
8+
"fixed": [],
9+
"linked": [],
10+
"ignore": []
1111
}

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ jobs:
3434
uses: ./.github/setup
3535
- name: Run Tests
3636
run: pnpm run test:ci
37-
- name: Publish
38-
run: |
39-
git config --global user.name 'Tanner Linsley'
40-
git config --global user.email '[email protected]'
41-
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
42-
pnpm run cipublish
37+
- name: Run Changesets (version or publish)
38+
uses: changesets/[email protected]
39+
with:
40+
version: pnpm run changeset:version
41+
publish: pnpm run changeset:publish
42+
commit: 'ci: Version Packages'
43+
title: 'ci: Version Packages'
4344
env:
44-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4546
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
46-
TAG: ${{ inputs.tag }}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
"test:format": "pnpm run prettier --check",
2020
"prettier": "prettier --ignore-unknown .",
2121
"prettier:write": "pnpm run prettier --write",
22-
"cipublish": "node ./packages/config/bin/config.js publish --cwd .",
23-
"cipublishforce": "CI=true pnpm cipublish"
22+
"changeset": "changeset",
23+
"changeset:version": "changeset version && pnpm install && pnpm prettier:write",
24+
"changeset:publish": "changeset publish"
2425
},
2526
"devDependencies": {
2627
"@changesets/changelog-github": "catalog:",

0 commit comments

Comments
 (0)