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

Commit

Permalink
fix(ci): fix semantic versioning (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Marosi authored Feb 8, 2020
1 parent 2f6b6ce commit b7d9852
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 61 deletions.
16 changes: 0 additions & 16 deletions bin/bump-package-json

This file was deleted.

28 changes: 0 additions & 28 deletions bin/utils/index.js

This file was deleted.

23 changes: 6 additions & 17 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ module.exports = {
analyzeCommits: ['@semantic-release/commit-analyzer'], // Determine the type of release by analyzing commits with conventional-changelog
verifyConditions: [
'@semantic-release/changelog', // Verify the presence and the validity of the configuration
'@semantic-release/npm', // Verify the presence and the validity of the npm authentication and release configuration
'@semantic-release/github', // Verify the presence and the validity of the GitHub authentication and release configuration

'@semantic-release/git' // Verify the presence and the validity of the Git authentication and release configuration
],
generateNotes: ['@semantic-release/release-notes-generator'], // Generate release notes for the commits added since the last release with conventional-changelog
Expand All @@ -14,28 +13,18 @@ module.exports = {
'@semantic-release/npm', // Update the package.json version and create the npm package tarball
[
'@semantic-release/exec', // Execute a shell command to bump next version inside README.md / package.json
{
generateNotesCmd: './config/_ci/release/bump-version ${nextRelease.version}',
prepareCmd: './config/_ci/release/prepare-assets ${nextRelease.version}'
}
],
[
'@semantic-release/exec', // Execute a shell command generate js bundle
{
prepareCmd: 'yarn build && yarn build:lib'
}
],
[
'@semantic-release/git',
{
assets: ['CHANGELOG.md', 'README.md', 'package.json', './dist', './lib', './docs'] // Push a release commit and tag, including globed files
}
]
],
publish: [
'@semantic-release/npm', // Update the package.json version and create the npm package tarball
,
'@semantic-release/github', // Publish a GitHub release
['@semantic-release/github', {
"assets": [
{"path": "dist/simple-calendar.js", "label": "Standalone JS file"}
]
}]// Publish a GitHub release
],
success: ['@semantic-release/github'], // Add a comment to GitHub issues and pull requests resolved in the release
fail: ['@semantic-release/github'], // Open a GitHub issue when a release fails
Expand Down

0 comments on commit b7d9852

Please sign in to comment.