File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change 8
8
- ' .github/workflows/comment-diffs.yml'
9
9
- ' packages/create-react-native-library/**'
10
10
- ' !**.md'
11
- permissions : write-all
12
11
13
12
jobs :
14
13
generate-diffs-if-needed :
31
30
- name : 📥 Monorepo install
32
31
uses : ./.github/actions/setup
33
32
with :
34
- enable-corepack : false
33
+ cache-npm-cache : true
35
34
cache-node-modules : true
36
35
cache-install-state : true
36
+
37
+ - name : Get hash of yarn lock
38
+ id : yarn-lock-hash
39
+ run : |
40
+ echo "YARN_LOCK_HASH=${{ hashFiles('./yarn.lock') }}" >> $GITHUB_OUTPUT
37
41
38
42
- name : Build crnl
39
43
run : |
77
81
done
78
82
done
79
83
80
- # - name: Setup again # Add a check here to setup again if deps changed
81
- # uses: ./.github/actions/setup
84
+ - name : Setup again #
85
+ if : ${{ steps.yarn-lock-hash.outputs.YARN_LOCK_HASH != hashFiles('./yarn.lock') }}
86
+ uses : ./.github/actions/setup
87
+ with :
88
+ cache-npm-cache : true
89
+ cache-node-modules : true
90
+ cache-install-state : true
82
91
83
92
- name : Remove old build and build again
84
93
run : |
@@ -128,10 +137,7 @@ jobs:
128
137
done
129
138
130
139
- name : Remove everything
131
- run : |
132
- # Remove everything except the .git folder
133
- for i in $(ls | grep -v ".git") ; do rm -rf "$i"; done;
134
- rm -rf ./.git
140
+ run : for i in $(ls) ; do rm -rf "$i"; done;
135
141
136
142
- name : Checkout
137
143
# uses: checkout
You can’t perform that action at this time.
0 commit comments