Skip to content

Commit 4ac095a

Browse files
committed
fix: add releaserc
1 parent d706527 commit 4ac095a

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.releaserc.cjs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module.exports = {
2+
plugins: [
3+
'@semantic-release/commit-analyzer',
4+
'@semantic-release/release-notes-generator',
5+
['@semantic-release/changelog', {
6+
changelogFile: 'CHANGELOG.md',
7+
}],
8+
["@semantic-release/npm", {
9+
npmPublish: false,
10+
}],
11+
['@semantic-release/git', {
12+
assets: ['package.json', 'package-lock.json', 'CHANGELOG.md'],
13+
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
14+
}],
15+
['@semantic-release/exec', {
16+
prepareCmd: 'npm run deploy:ci && npm run test-postdeploy',
17+
publishCmd: 'npm run deploy:production',
18+
successCmd: 'echo "${nextRelease.version}" > released.txt',
19+
}],
20+
'@semantic-release/github',
21+
],
22+
branches: ['main'],
23+
};

wrangler.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ send_metrics = false
77

88
build = { command = "npm install && node build.js" }
99

10+
kv_namespaces = [
11+
{ binding = "CONFIGS", id = "bb91e12a65a8462282396f32e63406f1", preview_id = "bb91e12a65a8462282396f32e63406f1" }
12+
]
13+
1014
[vars]
1115
VERSION = "@@VERSION@@-dev"
1216
ENVIRONMENT = "dev"
@@ -17,6 +21,10 @@ ENVIRONMENT = "dev"
1721
[env.ci]
1822
name = "rum-proxy-ci"
1923

24+
kv_namespaces = [
25+
{ binding = "CONFIGS", id = "bb91e12a65a8462282396f32e63406f1", preview_id = "bb91e12a65a8462282396f32e63406f1" }
26+
]
27+
2028
[env.ci.vars]
2129
VERSION = "@@VERSION@@-ci"
2230
ENVIRONMENT = "ci"
@@ -27,6 +35,10 @@ ENVIRONMENT = "ci"
2735
[env.production]
2836
name = "rum-proxy-prod"
2937

38+
kv_namespaces = [
39+
{ binding = "CONFIGS", id = "bb91e12a65a8462282396f32e63406f1", preview_id = "bb91e12a65a8462282396f32e63406f1" }
40+
]
41+
3042
[env.production.vars]
3143
VERSION = "@@VERSION@@"
3244
ENVIRONMENT = "prod"

0 commit comments

Comments
 (0)