Skip to content
This repository was archived by the owner on Feb 12, 2026. It is now read-only.

Commit 0d15452

Browse files
authored
fix(deps): allow studio v4 in peer dep ranges + update main.yml (#206)
1 parent e6b5991 commit 0d15452

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,20 @@ jobs:
105105
runs-on: ubuntu-latest
106106
name: Semantic release
107107
steps:
108+
- uses: actions/create-github-app-token@v2
109+
id: app-token
110+
with:
111+
app-id: ${{ secrets.ECOSPARK_APP_ID }}
112+
private-key: ${{ secrets.ECOSPARK_APP_PRIVATE_KEY }}
108113
- uses: actions/checkout@v4
109114
with:
110115
# Need to fetch entire commit history to
111116
# analyze every commit since last release
112117
fetch-depth: 0
118+
# Uses generated token to allow pushing commits back
119+
token: ${{ steps.app-token.outputs.token }}
120+
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
121+
persist-credentials: false
113122
- uses: actions/setup-node@v4
114123
with:
115124
cache: npm
@@ -119,10 +128,7 @@ jobs:
119128
# Branches that will release new versions are defined in .releaserc.json
120129
# @TODO remove --dry-run after verifying everything is good to go
121130
- run: npx semantic-release
122-
# Don't allow interrupting the release step if the job is cancelled, as it can lead to an inconsistent state
123-
# e.g. git tags were pushed but it exited before `npm publish`
124-
if: always()
125131
env:
126132
NPM_CONFIG_PROVENANCE: true
127-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
133+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
128134
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
"format": "prettier --write --cache --ignore-unknown .",
4343
"link-watch": "plugin-kit link-watch",
4444
"lint": "eslint .",
45+
"prepare": "husky install",
4546
"prepublishOnly": "run-s build",
46-
"watch": "pkg-utils watch --strict",
47-
"prepare": "husky install"
47+
"watch": "pkg-utils watch --strict"
4848
},
4949
"dependencies": {
5050
"@sanity/icons": "^3.5.3",
@@ -86,7 +86,7 @@
8686
},
8787
"peerDependencies": {
8888
"react": "^18 || ^19",
89-
"sanity": "^3.40.0",
89+
"sanity": "^3.40.0 || ^4.0.0-0",
9090
"styled-components": "^6.1"
9191
},
9292
"engines": {

0 commit comments

Comments
 (0)