Skip to content

Commit 8f6dd55

Browse files
committed
feat!: initial Sanity Studio v3 release
BREAKING CHANGE: this version does not work in Sanity Studio v2
1 parent 1b7a57e commit 8f6dd55

7 files changed

+371
-257
lines changed

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
pull_request:
1717
# Build on commits pushed to branches without a PR if it's in the allowlist
1818
push:
19-
branches: [main, v3]
19+
branches: [main, studio-v2]
2020
# https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
2121
workflow_dispatch:
2222
inputs:
@@ -96,7 +96,7 @@ jobs:
9696
with:
9797
cache: npm
9898
node-version: ${{ matrix.node }}
99-
- run: npm ci
99+
- run: npm i
100100
- run: npm test --if-present
101101

102102
release:

.releaserc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"extends": "@sanity/semantic-release-preset",
3-
"branches": ["main", {"name": "v3", "channel": "studio-v3", "prerelease": "v3-studio"}]
3+
"branches": ["main", {"name": "studio-v2", "channel": "studio-v2", "range": "1.x.x"}]
44
}

README.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
# Sanity Media
22

3-
> **NOTE**
4-
>
5-
> This is the **Sanity Studio v3 version** of sanity-plugin-media.
6-
>
7-
> For the v2 version, please refer to the [v2-branch](https://github.com/sanity-io/sanity-plugin-media).
3+
>This is a **Sanity Studio v3** plugin.
4+
> For the v2 version, please refer to the [v2-branch](https://github.com/sanity-io/sanity-plugin-media/tree/studio-v2).
85
96
## What is it?
107

@@ -247,7 +244,7 @@ Contributions, issues and feature requests are welcome!
247244

248245
## License
249246

250-
MIT-licensed. See LICENSE.
247+
[MIT](LICENSE) © Robin Pyon
251248

252249
## Develop & test
253250

commitlint.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
extends: ['@commitlint/config-conventional']
2+
extends: ['@commitlint/config-conventional'],
33
}

lint-staged.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
22
'**/*.{js,jsx}': ['eslint'],
3-
'**/*.{ts,tsx}': ['eslint', () => 'tsc --noEmit']
3+
'**/*.{ts,tsx}': ['eslint', () => 'tsc --noEmit'],
44
}

0 commit comments

Comments
 (0)