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 0b6e4f2 commit 6e93d7d
Show file tree
Hide file tree
Showing 6 changed files with 148 additions and 146 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"}]
}
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
> **NOTE**
>
> This is the **Sanity Studio v3 version** of sanity-plugin-dashboard-widget-vercel.
>
> For the v2 version, please refer to the [v2 version](https://github.com/sanity-io/sanity-plugin-dashboard-widget-vercel/tree/main).
# Vercel Dashboard Widget (for Sanity)

> This is a **Sanity Studio v3** plugin.
> For the v2 version, please refer to the [v2-branch](https://github.com/sanity-io/anity-plugin-dashboard-widget-vercel/tree/studio-v2).

View your recent [Vercel](https://vercel.com/) deployments and manually trigger builds directly from your [Sanity](https://www.sanity.io/) dashboard.

![image](https://user-images.githubusercontent.com/209129/112195398-d0bf8380-8c01-11eb-8857-60c37ae50326.jpg)
Expand All @@ -22,13 +20,13 @@ View your recent [Vercel](https://vercel.com/) deployments and manually trigger
## Install

```
npm install --save sanity-plugin-dashboard-widget-vercel@studio-v3
npm install --save sanity-plugin-dashboard-widget-vercel
```

or

```
yarn add sanity-plugin-dashboard-widget-vercel@studio-v3
yarn add sanity-plugin-dashboard-widget-vercel
```

Ensure that you have followed install and usage instructions for [@sanity/dashboard](https://github.com/sanity-io/dashboard).
Expand Down
Loading

0 comments on commit 6e93d7d

Please sign in to comment.