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

Commit b7d9852

Browse files
author
Peter Marosi
authored
fix(ci): fix semantic versioning (#130)
1 parent 2f6b6ce commit b7d9852

File tree

3 files changed

+6
-61
lines changed

3 files changed

+6
-61
lines changed

bin/bump-package-json

-16
This file was deleted.

bin/utils/index.js

-28
This file was deleted.

release.config.js

+6-17
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ module.exports = {
44
analyzeCommits: ['@semantic-release/commit-analyzer'], // Determine the type of release by analyzing commits with conventional-changelog
55
verifyConditions: [
66
'@semantic-release/changelog', // Verify the presence and the validity of the configuration
7-
'@semantic-release/npm', // Verify the presence and the validity of the npm authentication and release configuration
8-
'@semantic-release/github', // Verify the presence and the validity of the GitHub authentication and release configuration
7+
98
'@semantic-release/git' // Verify the presence and the validity of the Git authentication and release configuration
109
],
1110
generateNotes: ['@semantic-release/release-notes-generator'], // Generate release notes for the commits added since the last release with conventional-changelog
@@ -14,28 +13,18 @@ module.exports = {
1413
'@semantic-release/npm', // Update the package.json version and create the npm package tarball
1514
[
1615
'@semantic-release/exec', // Execute a shell command to bump next version inside README.md / package.json
17-
{
18-
generateNotesCmd: './config/_ci/release/bump-version ${nextRelease.version}',
19-
prepareCmd: './config/_ci/release/prepare-assets ${nextRelease.version}'
20-
}
21-
],
22-
[
23-
'@semantic-release/exec', // Execute a shell command generate js bundle
2416
{
2517
prepareCmd: 'yarn build && yarn build:lib'
2618
}
27-
],
28-
[
29-
'@semantic-release/git',
30-
{
31-
assets: ['CHANGELOG.md', 'README.md', 'package.json', './dist', './lib', './docs'] // Push a release commit and tag, including globed files
32-
}
3319
]
3420
],
3521
publish: [
3622
'@semantic-release/npm', // Update the package.json version and create the npm package tarball
37-
,
38-
'@semantic-release/github', // Publish a GitHub release
23+
['@semantic-release/github', {
24+
"assets": [
25+
{"path": "dist/simple-calendar.js", "label": "Standalone JS file"}
26+
]
27+
}]// Publish a GitHub release
3928
],
4029
success: ['@semantic-release/github'], // Add a comment to GitHub issues and pull requests resolved in the release
4130
fail: ['@semantic-release/github'], // Open a GitHub issue when a release fails

0 commit comments

Comments
 (0)