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

Commit 877bbc5

Browse files
RitaDiasstipsan
andauthored
fix(deps): allow studio v4 in peer dep ranges + update main.yml (#53)
* fix(deps): allow studio v4 in peer dep ranges + update main.yml * Update main.yml --------- Co-authored-by: Cody Olsen <81981+stipsan@users.noreply.github.com>
1 parent 2b0d8e1 commit 877bbc5

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/main.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -106,27 +106,27 @@ jobs:
106106
runs-on: ubuntu-latest
107107
name: Semantic release
108108
steps:
109-
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
109+
- uses: actions/create-github-app-token@v2
110+
id: app-token
111+
with:
112+
app-id: ${{ secrets.ECOSPARK_APP_ID }}
113+
private-key: ${{ secrets.ECOSPARK_APP_PRIVATE_KEY }}
114+
- uses: actions/checkout@v4
110115
with:
111116
# Need to fetch entire commit history to
112117
# analyze every commit since last release
113118
fetch-depth: 0
114-
- uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
119+
# Uses generated token to allow pushing commits back
120+
token: ${{ steps.app-token.outputs.token }}
121+
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
122+
persist-credentials: false
123+
- uses: actions/setup-node@v4
115124
with:
116125
cache: npm
117126
node-version: lts/*
118127
- run: npm ci
119128
# Branches that will release new versions are defined in .releaserc.json
120129
- run: npx semantic-release
121-
# Don't allow interrupting the release step if the job is cancelled, as it can lead to an inconsistent state
122-
# e.g. git tags were pushed but it exited before `npm publish`
123-
if: always()
124-
env:
125-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
126-
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
127-
# Re-run semantic release with rich logs if it failed to publish for easier debugging
128-
- run: npx semantic-release --dry-run --debug
129-
if: failure()
130130
env:
131-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
131+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
132132
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
},
8484
"peerDependencies": {
8585
"react": "^18 || ^19",
86-
"sanity": "^3.0.0"
86+
"sanity": "^3.0.0 || ^4.0.0"
8787
},
8888
"engines": {
8989
"node": ">=18"

0 commit comments

Comments
 (0)