-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c0e9eb7
commit f5c2bab
Showing
4 changed files
with
95 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ module.exports = { | |
{ name: "beta", prerelease: true }, | ||
{ name: "alpha", prerelease: true }, | ||
], | ||
repositoryUrl: "[email protected]:deriv-com/cs-scripts.git", | ||
repositoryUrl: "[email protected]:deriv-com/deriv-static-content.git", | ||
plugins: [ | ||
[ | ||
"@semantic-release/commit-analyzer", | ||
|
@@ -66,6 +66,13 @@ module.exports = { | |
}, | ||
], | ||
"@semantic-release/changelog", | ||
[ | ||
"@semantic-release/exec", | ||
{ | ||
prepareCmd: "cd public/scripts/packages/cs && npm run build", | ||
publishCmd: "cd public/scripts/packages/cs && npm run publish", | ||
}, | ||
], | ||
[ | ||
"@semantic-release/npm", | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,84 @@ | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
import customTransform from "../cs/release.utils.mjs" | ||
import customTransform from "../cs/release.utils.mjs"; | ||
|
||
export default { | ||
branches: [ | ||
"+([0-9])?(.{+([0-9]),x}).x", | ||
"master", | ||
"next", | ||
"next-major", | ||
{ name: "beta", prerelease: true }, | ||
{ name: "alpha", prerelease: true }, | ||
], | ||
repositoryUrl: "[email protected]:deriv-com/marketing-scripts.git", | ||
plugins: [ | ||
[ | ||
"@semantic-release/commit-analyzer", | ||
{ | ||
releaseRules: [ | ||
{ | ||
type: "feat", | ||
release: "minor", | ||
}, | ||
{ | ||
type: "build", | ||
release: "patch", | ||
}, | ||
{ | ||
type: "ci", | ||
release: "patch", | ||
}, | ||
{ | ||
type: "chore", | ||
release: "patch", | ||
}, | ||
{ | ||
type: "docs", | ||
release: "patch", | ||
}, | ||
{ | ||
type: "refactor", | ||
release: "patch", | ||
}, | ||
{ | ||
type: "style", | ||
release: "patch", | ||
}, | ||
{ | ||
type: "test", | ||
release: "patch", | ||
}, | ||
{ | ||
type: "fix", | ||
release: "patch", | ||
}, | ||
], | ||
}, | ||
], | ||
[ | ||
"@semantic-release/release-notes-generator", | ||
{ | ||
parserOpts: { | ||
mergePattern: /^Merge pull request #(\d+) from (.*)$/, | ||
mergeCorrespondence: ["id", "source"], | ||
}, | ||
writerOpts: { transform: customTransform }, | ||
}, | ||
], | ||
"@semantic-release/changelog", | ||
[ | ||
"@semantic-release/npm", | ||
{ | ||
npmPublish: true, | ||
}, | ||
export default { | ||
branches: [ | ||
"+([0-9])?(.{+([0-9]),x}).x", | ||
"master", | ||
"next", | ||
"next-major", | ||
{ name: "beta", prerelease: true }, | ||
{ name: "alpha", prerelease: true }, | ||
], | ||
repositoryUrl: "[email protected]:deriv-com/deriv-static-content.git", | ||
plugins: [ | ||
[ | ||
"@semantic-release/commit-analyzer", | ||
{ | ||
releaseRules: [ | ||
{ | ||
type: "feat", | ||
release: "minor", | ||
}, | ||
{ | ||
type: "build", | ||
release: "patch", | ||
}, | ||
{ | ||
type: "ci", | ||
release: "patch", | ||
}, | ||
{ | ||
type: "chore", | ||
release: "patch", | ||
}, | ||
{ | ||
type: "docs", | ||
release: "patch", | ||
}, | ||
{ | ||
type: "refactor", | ||
release: "patch", | ||
}, | ||
{ | ||
type: "style", | ||
release: "patch", | ||
}, | ||
{ | ||
type: "test", | ||
release: "patch", | ||
}, | ||
{ | ||
type: "fix", | ||
release: "patch", | ||
}, | ||
], | ||
"@semantic-release/github", | ||
}, | ||
], | ||
[ | ||
"@semantic-release/release-notes-generator", | ||
{ | ||
parserOpts: { | ||
mergePattern: /^Merge pull request #(\d+) from (.*)$/, | ||
mergeCorrespondence: ["id", "source"], | ||
}, | ||
writerOpts: { transform: customTransform }, | ||
}, | ||
], | ||
"@semantic-release/changelog", | ||
[ | ||
"@semantic-release/exec", | ||
{ | ||
prepareCmd: "cd public/scripts/packages/marketing && npm run build", | ||
publishCmd: "cd public/scripts/packages/marketing && npm run publish", | ||
}, | ||
], | ||
[ | ||
"@semantic-release/npm", | ||
{ | ||
npmPublish: true, | ||
}, | ||
], | ||
"@semantic-release/github", | ||
], | ||
}; |