Skip to content

Commit 90fa3a2

Browse files
tmp
1 parent 227ff40 commit 90fa3a2

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: CI
22

33
on: [push]
44

5+
env:
6+
BUILD_CACHE_KEY: ${{ github.sha }}-dist
57
jobs:
68
lint:
79
runs-on: ubuntu-latest
@@ -29,6 +31,12 @@ jobs:
2931
- name: Validate translations
3032
run: yarn validate-translations
3133

34+
- name: Cache Build Output
35+
uses: actions/cache@v5
36+
with:
37+
path: ./dist
38+
key: '${{ env.BUILD_CACHE_KEY }}'
39+
3240
test:
3341
runs-on: ubuntu-latest
3442
name: Test
@@ -62,9 +70,17 @@ jobs:
6270

6371
- uses: ./.github/actions/setup-node
6472
env:
65-
NODE_ENV: ""
73+
NODE_ENV: ''
74+
75+
- name: Recover Build Output
76+
id: build-cache
77+
uses: actions/cache@v5
78+
with:
79+
path: ./dist
80+
key: '${{ env.BUILD_CACHE_KEY }}'
6681

6782
- name: Build SDK
83+
if: steps.build-cache.outputs.cache-hit != 'true'
6884
run: yarn build
6985

7086
- name: Install example dependencies

0 commit comments

Comments
 (0)