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 in Sanity Studio v2
  • Loading branch information
snorrees committed Nov 17, 2022
1 parent 1b7a57e commit 8f6dd55
Show file tree
Hide file tree
Showing 7 changed files with 371 additions and 257 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: [main, 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": "1.x.x"}]
}
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# Sanity Media

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

Expand Down Expand Up @@ -247,7 +244,7 @@ Contributions, issues and feature requests are welcome!

## License

MIT-licensed. See LICENSE.
[MIT](LICENSE) © Robin Pyon

## Develop & test

Expand Down
2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional']
extends: ['@commitlint/config-conventional'],
}
2 changes: 1 addition & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
'**/*.{js,jsx}': ['eslint'],
'**/*.{ts,tsx}': ['eslint', () => 'tsc --noEmit']
'**/*.{ts,tsx}': ['eslint', () => 'tsc --noEmit'],
}
Loading

0 comments on commit 8f6dd55

Please sign in to comment.