aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/mcp.yml
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-11-29 13:08:04 +0000
committerMohamed Bassem <me@mbassem.com>2025-11-29 14:55:02 +0000
commit335a84bb59377371ecb2e6dc9702ce572d2e6cc6 (patch)
treeeb4585fa43e29a996bec8174447171c1c2989c1a /.github/workflows/mcp.yml
parent86a4b3966504507afd6c3adbb6a1246cafd39d83 (diff)
downloadkarakeep-335a84bb59377371ecb2e6dc9702ce572d2e6cc6.tar.zst
build: switch npm to trusted publishing
Diffstat (limited to '.github/workflows/mcp.yml')
-rw-r--r--.github/workflows/mcp.yml10
1 files changed, 6 insertions, 4 deletions
diff --git a/.github/workflows/mcp.yml b/.github/workflows/mcp.yml
index b38cfa9a..afe3f357 100644
--- a/.github/workflows/mcp.yml
+++ b/.github/workflows/mcp.yml
@@ -3,7 +3,12 @@ on:
push:
tags:
# This is a glob pattern not a regex
- - 'mcp/v[0-9]+.[0-9]+.[0-9]+'
+ - "mcp/v[0-9]+.[0-9]+.[0-9]+"
+
+permissions:
+ id-token: write # Required for OIDC
+ contents: read
+
jobs:
build:
runs-on: ubuntu-latest
@@ -19,6 +24,3 @@ jobs:
- run: pnpm publish --access public --no-git-checks
working-directory: apps/mcp
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
-