Skip to content

Commit

Permalink
chore: trigger workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-deriv committed Dec 16, 2024
1 parent c0e9eb7 commit f5c2bab
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 77 deletions.
6 changes: 4 additions & 2 deletions public/scripts/packages/cs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
"type": "module",
"version": "0.1.0",
"scripts": {
"build": "node build.js"
"build": "node build.js",
"publish": "npm publish --registry=https://registry.npmjs.org"
},
"dependencies": {
"esbuild": "^0.24.0",
"glob": "^11.0.0"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.3"
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/exec": "^6.0.3"
}
}
9 changes: 8 additions & 1 deletion public/scripts/packages/cs/release.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
{
Expand Down
6 changes: 4 additions & 2 deletions public/scripts/packages/marketing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
"version": "0.1.0",
"type": "module",
"scripts": {
"build": "node build.js"
"build": "node build.js",
"publish": "npm publish --registry=https://registry.npmjs.org"
},
"dependencies": {
"esbuild": "^0.24.0",
"glob": "^11.0.0"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.3"
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/exec": "^6.0.3"
}
}
151 changes: 79 additions & 72 deletions public/scripts/packages/marketing/release.config.mjs
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",
],
};

0 comments on commit f5c2bab

Please sign in to comment.