aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/sdk.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/sdk.yml
parent86a4b3966504507afd6c3adbb6a1246cafd39d83 (diff)
downloadkarakeep-335a84bb59377371ecb2e6dc9702ce572d2e6cc6.tar.zst
build: switch npm to trusted publishing
Diffstat (limited to '')
-rw-r--r--.github/workflows/sdk.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/.github/workflows/sdk.yml b/.github/workflows/sdk.yml
index d14057c8..678d7570 100644
--- a/.github/workflows/sdk.yml
+++ b/.github/workflows/sdk.yml
@@ -4,6 +4,11 @@ on:
tags:
# This is a glob pattern not a regex
- 'sdk/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: packages/sdk
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
-