We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 227ff40 commit 90fa3a2Copy full SHA for 90fa3a2
1 file changed
.github/workflows/ci.yml
@@ -2,6 +2,8 @@ name: CI
2
3
on: [push]
4
5
+env:
6
+ BUILD_CACHE_KEY: ${{ github.sha }}-dist
7
jobs:
8
lint:
9
runs-on: ubuntu-latest
@@ -29,6 +31,12 @@ jobs:
29
31
- name: Validate translations
30
32
run: yarn validate-translations
33
34
+ - name: Cache Build Output
35
+ uses: actions/cache@v5
36
+ with:
37
+ path: ./dist
38
+ key: '${{ env.BUILD_CACHE_KEY }}'
39
+
40
test:
41
42
name: Test
@@ -62,9 +70,17 @@ jobs:
62
70
63
71
- uses: ./.github/actions/setup-node
64
72
env:
65
- NODE_ENV: ""
73
+ NODE_ENV: ''
74
75
+ - name: Recover Build Output
76
+ id: build-cache
77
78
79
80
66
81
67
82
- name: Build SDK
83
+ if: steps.build-cache.outputs.cache-hit != 'true'
68
84
run: yarn build
69
85
86
- name: Install example dependencies
0 commit comments