Skip to content

Commit

Permalink
build: fix release bug
Browse files Browse the repository at this point in the history
  • Loading branch information
giladgd committed Sep 18, 2024
1 parent b34dc8c commit 0cc8a1d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ jobs:
with:
name: llama.cpp
path: llama
- name: Apply fix patch on semantic-release, to not check for push permission on dry run
run: git apply --ignore-whitespace ./scripts/patches/semantic-release+24.1.1.patch
- name: Resolve next release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
"husky": "^9.1.6",
"rehype": "^13.0.1",
"rimraf": "^6.0.1",
"semantic-release": "^24.1.1",
"semantic-release": "24.1.1",
"sharp": "^0.33.5",
"tslib": "^2.7.0",
"typedoc": "^0.26.7",
Expand Down
14 changes: 14 additions & 0 deletions scripts/patches/semantic-release+24.1.1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/node_modules/semantic-release/index.js b/node_modules/semantic-release/index.js
index 19c9f70..559665c 100644
--- a/node_modules/semantic-release/index.js
+++ b/node_modules/semantic-release/index.js
@@ -94,7 +94,8 @@ async function run(context, plugins) {
return false;
}

- throw error;
+ if (!options.dryRun)
+ throw error;
}
} catch (error) {
logger.error(`The command "${error.command}" failed with the error message ${error.stderr}.`);

0 comments on commit 0cc8a1d

Please sign in to comment.