Skip to content

Commit 01c6d17

Browse files
committed
inject environment variables for sdk release script
1 parent fdb773a commit 01c6d17

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/sdk-release-build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,19 @@ jobs:
3636
name: ${{ inputs.artifact-name }}
3737
path: sdk/
3838

39+
- name: Set environment variables
40+
env:
41+
SECRETS_CONTEXT: ${{ toJSON(secrets) }}
42+
shell: bash
43+
run: |
44+
VAR_NAMES=$(bun scripts/generate-ci-env.js)
45+
echo "$SECRETS_CONTEXT" | jq -r --argjson vars "$VAR_NAMES" '
46+
to_entries | .[] | select(.key as $k | $vars | index($k)) | .key + "=" + .value
47+
' >> $GITHUB_ENV
48+
49+
echo "CODEBUFF_GITHUB_ACTIONS=true" >> $GITHUB_ENV
50+
echo "CODEBUFF_GITHUB_TOKEN=${{ secrets.CODEBUFF_GITHUB_TOKEN }}" >> $GITHUB_ENV
51+
3952
- name: Build SDK
4053
run: |
4154
cd sdk

sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@codebuff/sdk",
33
"private": false,
4-
"version": "0.5.3",
4+
"version": "0.5.1",
55
"description": "Official SDK for Codebuff — AI coding agent & framework",
66
"license": "Apache-2.0",
77
"type": "module",

0 commit comments

Comments
 (0)