diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3eb5d19a..c0bfce82 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }} diff --git a/package-lock.json b/package-lock.json index 5c1514ea..bed04cab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -76,7 +76,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", diff --git a/package.json b/package.json index 5a02d084..2e89981d 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/scripts/patches/semantic-release+24.1.1.patch b/scripts/patches/semantic-release+24.1.1.patch new file mode 100644 index 00000000..d7ea6c89 --- /dev/null +++ b/scripts/patches/semantic-release+24.1.1.patch @@ -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}.`);