Skip to content

Commit 253b5d6

Browse files
authored
build: fix release bug (#316)
1 parent d4a4284 commit 253b5d6

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,9 @@ jobs:
318318
name: llama.cpp
319319
path: llama
320320
- 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
321+
run: |
322+
git apply --ignore-whitespace ./scripts/patches/semantic-release+24.1.1.patch
323+
git apply --ignore-whitespace ./scripts/patches/@semantic-release+npm+12.0.1.patch
322324
- name: Resolve next release
323325
env:
324326
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package-lock.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131
"@nolebase/vitepress-plugin-og-image": "^2.5.0",
132132
"@resvg/resvg-js": "^2.6.2",
133133
"@semantic-release/exec": "^6.0.3",
134+
"@semantic-release/npm": "12.0.1",
134135
"@shikijs/vitepress-twoslash": "^1.17.7",
135136
"@types/async-retry": "^1.4.8",
136137
"@types/bytes": "^3.1.4",
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/node_modules/@semantic-release/npm/lib/verify-auth.js b/node_modules/@semantic-release/npm/lib/verify-auth.js
2+
index 99e138e..31dee5f 100644
3+
--- a/node_modules/@semantic-release/npm/lib/verify-auth.js
4+
+++ b/node_modules/@semantic-release/npm/lib/verify-auth.js
5+
@@ -12,6 +12,10 @@ export default async function (npmrc, pkg, context) {
6+
stdout,
7+
stderr,
8+
} = context;
9+
+
10+
+ if (context.options?.dryRun)
11+
+ return;
12+
+
13+
const registry = getRegistry(pkg, context);
14+
15+
await setNpmrcAuth(npmrc, registry, context);

0 commit comments

Comments
 (0)