Skip to content

Commit dbf558a

Browse files
chore(ci): skip sdk publish job if NPM_TOKEN is not set
1 parent dec02bc commit dbf558a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/cd.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ name: cd
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches:
6+
- main
67

78
jobs:
89
sdk:
910
runs-on: ubuntu-24.04
11+
if: secrets.NPM_TOKEN != ''
1012
steps:
1113
- name: Checkout repository
1214
uses: actions/[email protected]
@@ -23,7 +25,7 @@ jobs:
2325
tag: sdk
2426
normal:
2527
needs: [ sdk ]
26-
runs-on: ubuntu-22.04
28+
runs-on: ubuntu-24.04
2729
steps:
2830
- name: Checkout repository
2931
uses: actions/[email protected]

0 commit comments

Comments
 (0)