Skip to content

Commit 63e4a5f

Browse files
tmp
1 parent 227ff40 commit 63e4a5f

1 file changed

Lines changed: 20 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ jobs:
2323

2424
- run: yarn build
2525

26+
- name: Cache Build Output
27+
uses: actions/cache@v5
28+
with:
29+
path: ./dist
30+
key: ${{ github.job_workflow_sha }}-dist
31+
2632
- name: Validate CJS bundle with Node ${{ env.NODE_VERSION }}
2733
run: yarn validate-cjs
2834

@@ -62,10 +68,21 @@ jobs:
6268

6369
- uses: ./.github/actions/setup-node
6470
env:
65-
NODE_ENV: ""
71+
NODE_ENV: ''
72+
73+
- name: Recover Build Output
74+
uses: actions/cache@v5
75+
with:
76+
path: ./dist
77+
key: ${{ github.job_workflow_sha }}-dist
78+
79+
- run: echo ${{ toJson(github) }}
6680

67-
- name: Build SDK
68-
run: yarn build
81+
- name: Build SDK if cache miss
82+
run: |
83+
if [ ! -d "./dist" ]; then
84+
yarn build
85+
fi
6986
7087
- name: Install example dependencies
7188
working-directory: examples/vite

0 commit comments

Comments
 (0)