Skip to content

Commit b1f9eea

Browse files
committed
setup changesets
1 parent e7184db commit b1f9eea

File tree

8 files changed

+481
-2515
lines changed

8 files changed

+481
-2515
lines changed

.changeset/config.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{"repo": "sanity-io/ui-workshop"}
6+
],
7+
"commit": false,
8+
"fixed": [],
9+
"linked": [],
10+
"access": "public",
11+
"baseBranch": "main",
12+
"updateInternalDependencies": "patch"
13+
}

.changeset/puny-peaches-find.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sanity/ui-workshop': minor
3+
---
4+
5+
Upgrade React Compiler to v1

.czrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
permissions:
11+
contents: read # for checkout
12+
13+
jobs:
14+
release:
15+
uses: sanity-io/.github/.github/workflows/changesets.yml@main
16+
permissions:
17+
contents: read # for checkout
18+
id-token: write # to enable use of OIDC for npm provenance
19+
with:
20+
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
21+
secrets: inherit

.github/workflows/renovate.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Add changeset to Renovate updates
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize]
6+
7+
concurrency: ${{ github.workflow }}-${{ github.ref }}
8+
9+
permissions:
10+
contents: read # for checkout
11+
12+
jobs:
13+
call:
14+
uses: sanity-io/.github/.github/workflows/changesets-from-conventional-commits.yml@main
15+
if: github.event.pull_request.user.login == 'renovate[bot]'
16+
secrets: inherit

.husky/commit-msg

Lines changed: 0 additions & 4 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -73,42 +73,25 @@
7373
"pkg:build": "pkg build --check --strict",
7474
"ts:check": "tsc --build",
7575
"clean": "rimraf .workshop dist",
76-
"commit": "cz",
7776
"dev": "run-p workshop:dev",
7877
"format": "prettier --write --cache --ignore-unknown .",
7978
"lint": "eslint . --ext .cjs,.js,.jsx,.mjs,.ts,.tsx",
8079
"prepare": "husky install",
8180
"prepack": "pnpm run build",
82-
"release": "semantic-release",
81+
"release": "changeset publish",
8382
"test": "vitest",
8483
"watch": "pkg watch --strict",
8584
"workshop:build": "run-s clean && node -r dotenv-flow/config -r esbuild-register -r tsconfig-paths/register scripts/build",
8685
"workshop:dev": "node -r dotenv-flow/config -r esbuild-register -r tsconfig-paths/register scripts/dev",
8786
"workshop:start": "http-server -a localhost -c-0 -p 1337 -s -P http://localhost:1337/index.html? dist"
8887
},
89-
"commitlint": {
90-
"extends": [
91-
"@commitlint/config-conventional"
92-
]
93-
},
9488
"lint-staged": {
9589
"*": [
9690
"prettier --write --cache --ignore-unknown"
9791
]
9892
},
9993
"browserslist": "extends @sanity/browserslist-config",
10094
"prettier": "@sanity/prettier-config",
101-
"release": {
102-
"branches": [
103-
"main",
104-
{
105-
"name": "static",
106-
"channel": "static",
107-
"prerelease": true
108-
}
109-
],
110-
"extends": "@sanity/semantic-release-preset"
111-
},
11295
"dependencies": {
11396
"@sanity/icons": "^3.7.4",
11497
"@vanilla-extract/css": "^1.17.4",
@@ -133,11 +116,11 @@
133116
"vite": "^7.1.10"
134117
},
135118
"devDependencies": {
136-
"@commitlint/config-conventional": "^19.8.1",
119+
"@changesets/changelog-github": "^0.5.1",
120+
"@changesets/cli": "^2.29.7",
137121
"@sanity/browserslist-config": "^1.0.5",
138122
"@sanity/pkg-utils": "^8.1.21",
139123
"@sanity/prettier-config": "^2.0.1",
140-
"@sanity/semantic-release-preset": "^4.1.8",
141124
"@sanity/ui": "^3.1.10",
142125
"@types/cpx": "^1.5.5",
143126
"@types/express": "^5.0.3",
@@ -149,8 +132,6 @@
149132
"@typescript-eslint/eslint-plugin": "^7.18.0",
150133
"@typescript-eslint/parser": "^7.18.0",
151134
"babel-plugin-react-compiler": "1.0.0",
152-
"commitizen": "^4.3.1",
153-
"commitlint": "^19.8.1",
154135
"eslint": "^8.57.1",
155136
"eslint-config-prettier": "^9.1.2",
156137
"eslint-plugin-import": "^2.32.0",
@@ -167,7 +148,6 @@
167148
"react": "^19.2.0",
168149
"react-dom": "^19.2.0",
169150
"react-is": "^19.2.0",
170-
"semantic-release": "^23.1.1",
171151
"tsconfig-paths": "^4.2.0",
172152
"typescript": "5.9.3",
173153
"vitest": "^3.2.4"

0 commit comments

Comments
 (0)