File tree Expand file tree Collapse file tree 4 files changed +17
-8
lines changed
Expand file tree Collapse file tree 4 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 88 paths :
99 description : Paths to cache
1010 required : false
11- default : " **/.cache"
11+ default : |
12+ .cache
13+ **/.cache
1214
1315runs :
1416 using : composite
2123 - uses : actions/cache@v4
2224 id : cache
2325 with :
24- path : ${{ inputs.paths }}
26+ path : |
27+ ${{ inputs.paths }}
2528 key : ${{ runner.os }}-cache-${{ inputs.key }}-${{ hashFiles('**/yarn.lock') }}-${{ steps.cache-time.outputs.time }}
2629 restore-keys : |
2730 ${{ runner.os }}-cache-${{ inputs.key }}-${{ hashFiles('**/yarn.lock') }}-
Original file line number Diff line number Diff line change 1414 # https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
1515 - name : Get yarn cache directory path
1616 id : yarn-cache-dir-path
17- run : echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
17+ run : |
18+ corepack enable
19+ echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
1820 shell : bash
1921
2022 - uses : actions/cache@v4
Original file line number Diff line number Diff line change @@ -105,7 +105,12 @@ jobs:
105105
106106 runs-on : ubuntu-latest
107107
108- permissions : write-all
108+ permissions :
109+ contents : write
110+ issues : write
111+ pull-requests : write
112+ packages : write
113+ statuses : write
109114
110115 steps :
111116 - name : Checkout Repo
Original file line number Diff line number Diff line change 99 " examples/*"
1010 ],
1111 "scripts" : {
12- "task" : " turbo run --cache-dir .cache/turbo" ,
12+ "task" : " yarn turbo run --cache-dir .cache/turbo" ,
1313 "clean" : " yarn g:clean && yarn task clean" ,
1414 "build" : " yarn task build" ,
1515 "build:type" : " yarn tsc --build" ,
2626 "coverage" : " yarn task coverage" ,
2727 "coverage:all" : " yarn task coverage:all" ,
2828 "forallpackages" : " yarn workspaces foreach -Aptv --no-private --verbose" ,
29- "build:release" : " yarn build && yarn forallpackages exec rimraf _release && yarn forallpackages pack && yarn forallpackages exec \" mkdir _release && tar zxvf package.tgz --directory _release && rm package.tgz\" " ,
30- "changeset" : " changeset" ,
31- "changeset:version" : " changeset version" ,
29+ "build:release" : " PACKAGE_PUBLISH=true yarn build && yarn forallpackages exec \" rimraf _release && pack && mkdir _release && tar zxvf package.tgz --directory _release && rm package.tgz\" " ,
30+ "changeset:version" : " yarn changeset version" ,
3231 "publish" : " yarn build:release && changeset publish" ,
3332 "g:clean" : " cd $INIT_CWD && yarn run -T rimraf .cache _release dist coverage .turbo tsconfig.tsbuildinfo node_modules/.vite" ,
3433 "g:build" : " cd $INIT_CWD && yarn run -T vite build" ,
You can’t perform that action at this time.
0 commit comments