Skip to content

Commit fb0c785

Browse files
authored
fix: use @sanity/semantic-release-preset
1 parent df3919a commit fb0c785

File tree

4 files changed

+277
-1096
lines changed

4 files changed

+277
-1096
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,16 @@ jobs:
5151
if: inputs.release == true
5252
steps:
5353
- uses: actions/checkout@v3
54+
with:
55+
# Need to fetch entire commit history to
56+
# analyze every commit since last release
57+
fetch-depth: 0
5458
- uses: actions/setup-node@v3
5559
with:
5660
node-version: lts/*
5761
cache: 'npm'
5862
- run: npm install
59-
# Branches that will release new versions is defined in .releaserc.json
63+
# Branches that will release new versions are defined in .releaserc.json
6064
- run: npx semantic-release
6165
env:
6266
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.releaserc.json

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,7 @@
11
{
2+
"extends": "@sanity/semantic-release-preset",
23
"branches": [
34
{"name": "main", "channel": "studio-v3", "prerelease": "v3-studio"},
45
{"name": "main-post-ga"}
5-
],
6-
"plugins": [
7-
"@semantic-release/commit-analyzer",
8-
"@semantic-release/release-notes-generator",
9-
"@semantic-release/changelog",
10-
[
11-
"@semantic-release/npm",
12-
{
13-
"tarballDir": "release"
14-
}
15-
],
16-
[
17-
"@semantic-release/github",
18-
{
19-
"assets": "release/*.tgz"
20-
}
21-
],
22-
[
23-
"@semantic-release/git",
24-
{
25-
"message": "chore(release): ${nextRelease.version} [skip ci]"
26-
}
27-
]
28-
],
29-
"preset": "angular"
6+
]
307
}

0 commit comments

Comments
 (0)