MCPcopy
hub / github.com/parse-community/parse-server-example / config

Function config

release.config.js:30–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29// Declare semantic config
30async function config() {
31
32 // Get branch
33 const branch = ref?.split('/')?.pop()?.split('-')[0] || '(current branch could not be determined)';
34 console.log(`Running on branch: ${branch}`);
35
36 // Set changelog file
37 //const changelogFile = `./changelogs/CHANGELOG_${branch}.md`;
38 const changelogFile = `./CHANGELOG.md`;
39 console.log(`Changelog file output to: ${changelogFile}`);
40
41 // Load template file contents
42 await loadTemplates();
43
44 const config = {
45 branches: [
46 'main',
47 'master',
48 'release',
49 { name: 'alpha', prerelease: true },
50 { name: 'beta', prerelease: true },
51 'next-major',
52 // Long-Term-Support branches
53 // { name: 'release-1', range: '1.x.x', channel: '1.x' },
54 // { name: 'release-2', range: '2.x.x', channel: '2.x' },
55 // { name: 'release-3', range: '3.x.x', channel: '3.x' },
56 // { name: 'release-4', range: '4.x.x', channel: '4.x' },
57 ],
58 dryRun: false,
59 debug: true,
60 ci: true,
61 tagFormat: '${version}',
62 plugins: [
63 ['@semantic-release/commit-analyzer', {
64 preset: 'angular',
65 releaseRules: [
66 { type: 'docs', scope: 'README', release: 'patch' },
67 { scope: 'no-release', release: false },
68 ],
69 parserOpts: {
70 noteKeywords: [ 'BREAKING CHANGE' ],
71 },
72 }],
73 ['@semantic-release/release-notes-generator', {
74 preset: 'angular',
75 parserOpts: {
76 noteKeywords: [ 'BREAKING CHANGE' ]
77 },
78 writerOpts: {
79 commitsSort: ['subject', 'scope'],
80 mainTemplate: templates.main.text,
81 headerPartial: templates.header.text,
82 commitPartial: templates.commit.text,
83 footerPartial: templates.footer.text,
84 },
85 }],
86 ['@semantic-release/changelog', {
87 'changelogFile': changelogFile,

Callers 1

release.config.jsFile · 0.85

Calls 2

loadTemplatesFunction · 0.85
getReleaseCommentFunction · 0.85

Tested by

no test coverage detected