Skip to content

Commit c9feea2

Browse files
authored
fix!: require semantic-release v24 (#128)
1 parent 935324a commit c9feea2

File tree

8 files changed

+39
-34
lines changed

8 files changed

+39
-34
lines changed

.github/renovate.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"github>sanity-io/renovate-config",
5-
"github>sanity-io/renovate-config:automerge"
6-
],
3+
"extends": ["github>sanity-io/renovate-config", "github>sanity-io/renovate-config:automerge"],
74
"packageRules": [
85
{
96
"matchPackageNames": ["semantic-release-license"],

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ on:
1717
workflow_dispatch:
1818
inputs:
1919
test:
20-
description: 'Run tests'
20+
description: "Run tests"
2121
required: true
2222
default: true
2323
type: boolean
2424
release:
25-
description: 'Publish new release'
25+
description: "Publish new release"
2626
required: true
2727
default: false
2828
type: boolean

.github/workflows/prettier.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
author: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
4848
body: I ran `npm run prettier` 🧑‍💻
4949
branch: actions/prettier-if-needed
50-
commit-message: 'chore(prettier): 🤖 ✨'
50+
commit-message: "chore(prettier): 🤖 ✨"
5151
labels: 🤖 bot
52-
title: 'chore(prettier): 🤖 ✨'
52+
title: "chore(prettier): 🤖 ✨"
5353
token: ${{ steps.generate-token.outputs.token }}

.releaserc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"extends": "./index.js",
3-
"branches": ["main", { "name": "canary", "prerelease": true }],
3+
"branches": ["main", {"name": "canary", "prerelease": true}],
44
"tagFormat": "@sanity/semantic-release-preset@${version}"
55
}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Then use this config:
7070
```json
7171
{
7272
"extends": "@sanity/semantic-release-preset",
73-
"branches": ["main", { "name": "beta", "prerelease": true }]
73+
"branches": ["main", {"name": "beta", "prerelease": true}]
7474
}
7575
```
7676

index.js

+15-15
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const preset = 'conventionalcommits'
88
**/
99
const options = {
1010
plugins: [
11-
['@semantic-release/commit-analyzer', { preset }],
12-
['@semantic-release/release-notes-generator', { preset }],
11+
['@semantic-release/commit-analyzer', {preset}],
12+
['@semantic-release/release-notes-generator', {preset}],
1313
[
1414
'@semantic-release/changelog',
1515
{
@@ -18,20 +18,20 @@ const options = {
1818
# 📓 Changelog
1919
2020
All notable changes to this project will be documented in this file. See
21-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.`
22-
}
21+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.`,
22+
},
2323
],
2424
[
2525
'@semantic-release/exec',
2626
{
27-
prepareCmd: 'npx -y prettier --write CHANGELOG.md'
28-
}
27+
prepareCmd: 'npx -y prettier --write CHANGELOG.md',
28+
},
2929
],
3030
[
3131
'@semantic-release/npm',
3232
{
33-
tarballDir: '.semantic-release'
34-
}
33+
tarballDir: '.semantic-release',
34+
},
3535
],
3636
'semantic-release-license',
3737
[
@@ -43,10 +43,10 @@ All notable changes to this project will be documented in this file. See
4343
'package-lock.json',
4444
'package.json',
4545
'pnpm-lock.yaml',
46-
'yarn.lock'
46+
'yarn.lock',
4747
],
48-
message: 'chore(release): ${nextRelease.version} [skip ci]'
49-
}
48+
message: 'chore(release): ${nextRelease.version} [skip ci]',
49+
},
5050
],
5151
[
5252
'@semantic-release/github',
@@ -56,10 +56,10 @@ All notable changes to this project will be documented in this file. See
5656
// These features currently frequently leads to GitHub API rate limit errors, so we disable them for now.
5757
releasedLabels: false,
5858
// @TODO remove this before releasing on main
59-
successComment: false
60-
}
61-
]
62-
]
59+
successComment: false,
60+
},
61+
],
62+
],
6363
}
6464

6565
module.exports = options

package-lock.json

+14-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-7
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,7 @@
4242
"prettier": "npx prettier --ignore-path .gitignore",
4343
"test": "npx ls-engines"
4444
},
45-
"prettier": {
46-
"semi": false,
47-
"singleQuote": true,
48-
"trailingComma": "none"
49-
},
45+
"prettier": "@sanity/prettier-config",
5046
"dependencies": {
5147
"@semantic-release/changelog": "^6.0.3",
5248
"@semantic-release/exec": "^6.0.3",
@@ -55,13 +51,13 @@
5551
"semantic-release-license": "^1.0.3"
5652
},
5753
"devDependencies": {
54+
"@sanity/prettier-config": "^1.0.2",
5855
"ls-engines": "0.9.1",
5956
"prettier": "^3.3.1",
60-
"prettier-plugin-packagejson": "^2.5.0",
6157
"semantic-release": "^24.0.0"
6258
},
6359
"peerDependencies": {
64-
"semantic-release": "^22.0.12 || ^23.0.2 || ^24.0.0"
60+
"semantic-release": "^24"
6561
},
6662
"engines": {
6763
"node": ">= 20.8"

0 commit comments

Comments
 (0)