Skip to content

Commit d4a4284

Browse files
authored
build: fix release bug (#315)
1 parent b34dc8c commit d4a4284

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,8 @@ jobs:
317317
with:
318318
name: llama.cpp
319319
path: llama
320+
- name: Apply fix patch on semantic-release, to not check for push permission on dry run
321+
run: git apply --ignore-whitespace ./scripts/patches/semantic-release+24.1.1.patch
320322
- name: Resolve next release
321323
env:
322324
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
"husky": "^9.1.6",
155155
"rehype": "^13.0.1",
156156
"rimraf": "^6.0.1",
157-
"semantic-release": "^24.1.1",
157+
"semantic-release": "24.1.1",
158158
"sharp": "^0.33.5",
159159
"tslib": "^2.7.0",
160160
"typedoc": "^0.26.7",
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/node_modules/semantic-release/index.js b/node_modules/semantic-release/index.js
2+
index 19c9f70..559665c 100644
3+
--- a/node_modules/semantic-release/index.js
4+
+++ b/node_modules/semantic-release/index.js
5+
@@ -94,7 +94,8 @@ async function run(context, plugins) {
6+
return false;
7+
}
8+
9+
- throw error;
10+
+ if (!options.dryRun)
11+
+ throw error;
12+
}
13+
} catch (error) {
14+
logger.error(`The command "${error.command}" failed with the error message ${error.stderr}.`);

0 commit comments

Comments
 (0)