We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 227ff40 commit 2c2129eCopy full SHA for 2c2129e
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
@@ -23,6 +25,12 @@ jobs:
23
25
24
26
- run: yarn build
27
28
+ - name: Cache Build Output
29
+ uses: actions/cache@v5
30
+ with:
31
+ path: ./dist
32
+ key: '${{ env.BUILD_CACHE_KEY }}'
33
+
34
- name: Validate CJS bundle with Node ${{ env.NODE_VERSION }}
35
run: yarn validate-cjs
36
@@ -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