Skip to content

Commit b89530d

Browse files
committed
fix: update semantic-release configuration
Add support for Tailwind v4 beta releases, configure NPM publishing, and improve formatting of the configuration file.
1 parent 1f1b152 commit b89530d

File tree

1 file changed

+28
-15
lines changed

1 file changed

+28
-15
lines changed

release.config.js

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,30 @@
11
const config = {
2-
"branches": ["main"],
3-
"plugins": [
4-
"@semantic-release/commit-analyzer",
5-
"@semantic-release/release-notes-generator",
6-
[
7-
"@semantic-release/git",
8-
{
9-
"assets": ["dist/*", "package.json", "pnpm-lock.yaml", "README.md", "LICENSE"],
10-
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
11-
}
2+
branches: ['main', { name: 'tailwindcss-v4', prerelease: 'beta' }],
3+
plugins: [
4+
'@semantic-release/commit-analyzer',
5+
'@semantic-release/release-notes-generator',
6+
[
7+
'@semantic-release/npm',
8+
{
9+
npmPublish: true,
10+
tarballDir: 'dist'
11+
}
12+
],
13+
[
14+
'@semantic-release/git',
15+
{
16+
assets: ['dist/*', 'package.json', 'pnpm-lock.yaml', 'README.md', 'LICENSE'],
17+
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
18+
}
19+
],
20+
[
21+
'@semantic-release/github',
22+
{
23+
assets: ['dist/*']
24+
}
25+
]
26+
],
27+
tagFormat: 'v${version}' // For main branch; tailwind-4 will override with beta-v${version}
28+
};
1229

13-
],
14-
"@semantic-release/github"
15-
]
16-
}
17-
module.exports = config
30+
module.exports = config;

0 commit comments

Comments
 (0)