Skip to content

Commit

Permalink
feat!: initial Sanity Studio v3 release
Browse files Browse the repository at this point in the history
BREAKING CHANGE: this version does not work with Sanity Studio v2
  • Loading branch information
snorrees committed Nov 17, 2022
1 parent 56fbfdf commit 04071be
Show file tree
Hide file tree
Showing 5 changed files with 12,997 additions and 16,586 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
pull_request:
# Build on commits pushed to branches without a PR if it's in the allowlist
push:
branches: [v3]
branches: [main, studio-v2]
# https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
with:
cache: npm
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm i
- run: npm test --if-present

release:
Expand Down
2 changes: 1 addition & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "@sanity/semantic-release-preset",
"branches": ["main", {"name": "v3", "channel": "studio-v3", "prerelease": "v3-studio"}]
"branches": ["main", {"name": "studio-v2", "channel": "studio-v2", "range": "0.x.x"}]
}
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# @sanity/orderable-document-list

> **NOTE**
>
> This is the **Sanity Studio v3 version** of @sanity/orderable-document-list.
>
> For the v2 version, please refer to the [v2-branch](https://github.com/sanity-io/orderable-document-list).
## What is it?
>This is a **Sanity Studio v2** plugin.
> For the v2 version, please refer to the [v2-branch](https://github.com/sanity-io/orderable-document-list/tree/studio-v2).
#
# What is it?
Drag-and-drop Document Ordering without leaving the Editing surface.

![2022-04-26 12 23 39](https://user-images.githubusercontent.com/9684022/165289621-dbd9d841-028e-40c7-be14-7398fcdb1210.gif)
Expand Down Expand Up @@ -37,13 +34,13 @@ export default defineConfig({
Run the following command in your studio directory

```sh
npm install --save @sanity/orderable-document-list@studio-v3
npm install --save @sanity/orderable-document-list
```

or

```sh
yarn add @sanity/orderable-document-list@studio-v3
yarn add @sanity/orderable-document-list
```

## Usage
Expand Down
Loading

0 comments on commit 04071be

Please # to comment.