-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: apply upstream v2-studio fixes, add semver automation workflow
- fix: correctly infer filename from files containing uppercase extensions, tweak upload card layout - fix: fix minor regression with tag positioning, dont portal tooltips to prevent overflow issues - ci: add semver automation workflow - fix: catch errors when preview images fail to be generated (#88) - fix: throw an error when trying to call window.crypto from insecure contexts (#50) - fix: don't hardcode z-indices, correctly render last filter item (#57, #82)
- Loading branch information
Showing
43 changed files
with
19,741 additions
and
14,533 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,85 @@ | ||
name: CI | ||
name: CI & Release | ||
on: | ||
- push | ||
- pull_request | ||
# Build on pushes to release branches | ||
push: | ||
branches: ['main', 'v3'] | ||
# Build on pull requests targeting release branches | ||
pull_request: | ||
branches: ['main', 'v3'] | ||
workflow_dispatch: | ||
inputs: | ||
release: | ||
description: Release new version | ||
required: true | ||
default: false | ||
type: boolean | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.platform }} | ||
name: Node.js ${{ matrix.node-version }} / ${{ matrix.platform }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [ubuntu-latest, macos-latest, windows-latest] | ||
node-version: | ||
- 16 | ||
log-the-inputs: | ||
name: Log inputs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: | | ||
echo "Inputs: $INPUTS" | ||
env: | ||
INPUTS: ${{ toJSON(inputs) }} | ||
build: | ||
name: Lint & Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set git to use LF | ||
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: lts/* | ||
cache: npm | ||
- run: npm ci | ||
- run: npm run lint --if-present | ||
- run: npm run prepublishOnly | ||
|
||
test: | ||
name: Test | ||
needs: build | ||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest] | ||
node: [lts/*, current] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
cache: npm | ||
- run: npm ci | ||
- run: npm test --if-present | ||
|
||
release: | ||
name: Semantic release | ||
needs: test | ||
runs-on: ubuntu-latest | ||
# only run if opt-in during workflow_dispatch | ||
if: inputs.release == true | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
# Need to fetch entire commit history to | ||
# analyze every commit since last release | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm install | ||
- run: npm run lint | ||
- run: npm run build | ||
#- run: npm test | ||
node-version: lts/* | ||
cache: npm | ||
- run: npm ci | ||
# Branches that will release new versions are defined in .releaserc.json | ||
- run: npx semantic-release | ||
# Don't allow interrupting the release step if the job is cancelled, as it can lead to an inconsistent state | ||
# e.g. git tags were pushed but it exited before `npm publish` | ||
if: always() | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
legacy-peer-deps=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"extends": "@sanity/semantic-release-preset", | ||
"branches": ["main", {"name": "v3", "channel": "studio-v3", "prerelease": "v3-studio"}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
extends: ['@commitlint/config-conventional'] | ||
} |
Oops, something went wrong.