File tree Expand file tree Collapse file tree 3 files changed +17
-30
lines changed Expand file tree Collapse file tree 3 files changed +17
-30
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 55 - main
66env :
77 CI : true
8- PNPM_CACHE_FOLDER : .pnpm-store
8+
99jobs :
1010 version :
1111 timeout-minutes : 15
@@ -21,22 +21,28 @@ jobs:
2121 with :
2222 node-version : 16
2323
24- - name : install pnpm
25- run : npm i pnpm@latest -g
24+ - name : Get yarn cache directory path
25+ id : yarn-cache-dir-path
26+ run : echo "::set-output name=dir::$(yarn cache dir)"
2627
27- - name : setup pnpm config
28- run : pnpm config set store-dir $PNPM_CACHE_FOLDER
28+ - uses : actions/cache@v1
29+ id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
30+ with :
31+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
32+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
33+ restore-keys : |
34+ ${{ runner.os }}-yarn-
2935
3036 - name : install dependencies
31- run : pnpm install
37+ run : yarn install
3238
3339 - name : create and publish versions
3440 uses : changesets/action@v1
3541 with :
36- version : pnpm run version
42+ version : yarn run version
3743 commit : " chore: update versions"
3844 title : " chore: update versions"
39- publish : pnpm run publish
45+ publish : yarn run publish
4046 env :
4147 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4248 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 3939 "android:pretty" : " yarn --cwd exampleExpo android:pretty" ,
4040 "pods" : " cd exampleExpo && pod-install --quiet" ,
4141 "bootstrap" : " yarn && yarn pods" ,
42- "deploy" : " cd exampleExpo && yarn deploy"
42+ "deploy" : " cd exampleExpo && yarn deploy" ,
43+ "publish" : " yarn run prepare && changeset publish" ,
44+ "version" : " changeset version"
4345 },
4446 "keywords" : [
4547 " react-native" ,
You can’t perform that action at this time.
0 commit comments