Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Commit 3a1c05d

Browse files
committed
feat!: initial Sanity Studio v3 release
BREAKING CHANGE: this version does not work in Sanity Studio v2
1 parent 6575a24 commit 3a1c05d

File tree

6 files changed

+165
-164
lines changed

6 files changed

+165
-164
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
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

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

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
# sanity-plugin-dashboard-widget-cats
22

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

@@ -17,13 +14,13 @@ This plugin mostly exist to show how a simple widget can be made.
1714
## Install
1815

1916
```
20-
npm install --save sanity-plugin-dashboard-widget-cats@studio-v3
17+
npm install --save sanity-plugin-dashboard-widget-cats
2118
```
2219

2320
or
2421

2522
```
26-
yarn add sanity-plugin-dashboard-widget-cats@studio-v3
23+
yarn add sanity-plugin-dashboard-widget-cats
2724
```
2825

2926
Ensure that you have followed install and usage instructions for @sanity/dashboard.

0 commit comments

Comments
 (0)