Skip to content

Commit c98cbb2

Browse files
authored
fix: add zephyr secret token to workflow (#114)
* fix: add zephyr secret token to workflow * fix: pnpm version on workflow * fix: api environment variables
1 parent b27a52e commit c98cbb2

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ runs:
1616
steps:
1717
- uses: pnpm/action-setup@v4
1818
with:
19-
version: 10
19+
version: 10.6.3
2020
run_install: false
2121
- uses: actions/setup-node@v4
2222
with:

.github/workflows/build-deploy-test.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ name: Build, Deploy, and Test All Examples
33
on:
44
workflow_dispatch:
55
inputs:
6+
environment:
7+
description: "Deployment environment (dev, staging, prod)"
8+
required: true
9+
default: "prod"
10+
type: choice
11+
options:
12+
- dev
13+
- staging
14+
- prod
615
skip_cache:
716
description: "Skip build cache and force rebuild all packages"
817
required: false
@@ -17,7 +26,25 @@ on:
1726
types: [build-deploy-test]
1827

1928
env:
20-
NODE_VERSION: "20"
29+
NODE_VERSION: "24"
30+
ZE_SECRET_TOKEN: |
31+
${{
32+
github.event.inputs.environment == 'dev' && secrets.ZE_SECRET_TOKEN_DEV ||
33+
github.event.inputs.environment == 'staging' && secrets.ZE_SECRET_TOKEN_STAGING ||
34+
secrets.ZE_SECRET_TOKEN_PROD
35+
}}
36+
ZE_API_GATE: |
37+
${{
38+
github.event.inputs.environment == 'dev' && 'https://zeapi.zephyrcloudapp.dev' ||
39+
github.event.inputs.environment == 'staging' && 'https://zeapi.zephyrcloudapp.xyz' ||
40+
'https://zeapi.zephyrcloud.app'
41+
}}
42+
ZE_API: |
43+
${{
44+
github.event.inputs.environment == 'dev' && 'https://api-dev.zephyr-cloud.io' ||
45+
github.event.inputs.environment == 'staging' && 'https://zephyr-api-prerelease-1a6b535d0499.herokuapp.com' ||
46+
'https://api.zephyr-cloud.io'
47+
}}
2148
2249
jobs:
2350
build-deploy-test:

0 commit comments

Comments
 (0)