This repository has been archived by the owner on Jun 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathrelease.config.js
42 lines (41 loc) · 1.62 KB
/
release.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* eslint-disable */
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/github',
'@semantic-release/npm',
'@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
prepare: [
'@semantic-release/changelog', // Create or update the changelog file in the local project repository
'@semantic-release/npm', // Update the package.json version and create the npm package tarball
[
'@semantic-release/git',
{
assets: [
'CHANGELOG.md',
'README.md',
'package.json',
'./lib',
'./dist',
'./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',
{
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
}