aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/cli.yml
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-11-29 18:52:37 +0000
committerMohamed Bassem <me@mbassem.com>2025-11-29 18:53:44 +0000
commit4898b6be87c6edec8c74d69317899ce918c550ad (patch)
tree69a33337fd50529ed479f5c46efa0126a767edf0 /.github/workflows/cli.yml
parent28d6750ecc6e6a47210125e4fced25c9f28da498 (diff)
downloadkarakeep-4898b6be87c6edec8c74d69317899ce918c550ad.tar.zst
build: fix npm trusted publishing
Diffstat (limited to '.github/workflows/cli.yml')
-rw-r--r--.github/workflows/cli.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml
index ac4370cb..de3d9416 100644
--- a/.github/workflows/cli.yml
+++ b/.github/workflows/cli.yml
@@ -3,7 +3,7 @@ on:
push:
tags:
# This is a glob pattern not a regex
- - 'cli/v[0-9]+.[0-9]+.[0-9]+'
+ - "cli/v[0-9]+.[0-9]+.[0-9]+"
permissions:
id-token: write # Required for OIDC
@@ -22,5 +22,8 @@ jobs:
run: pnpm build
working-directory: apps/cli
+ # npm 11.5.1 or later is required for trusted publishing
+ - run: npm install -g npm@latest
+
- run: pnpm publish --access public --no-git-checks
working-directory: apps/cli