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 8
8
paths :
9
9
description : Paths to cache
10
10
required : false
11
- default : " **/.cache"
11
+ default : |
12
+ .cache
13
+ **/.cache
12
14
13
15
runs :
14
16
using : composite
21
23
- uses : actions/cache@v4
22
24
id : cache
23
25
with :
24
- path : ${{ inputs.paths }}
26
+ path : |
27
+ ${{ inputs.paths }}
25
28
key : ${{ runner.os }}-cache-${{ inputs.key }}-${{ hashFiles('**/yarn.lock') }}-${{ steps.cache-time.outputs.time }}
26
29
restore-keys : |
27
30
${{ runner.os }}-cache-${{ inputs.key }}-${{ hashFiles('**/yarn.lock') }}-
Original file line number Diff line number Diff line change 14
14
# https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
15
15
- name : Get yarn cache directory path
16
16
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
18
20
shell : bash
19
21
20
22
- uses : actions/cache@v4
Original file line number Diff line number Diff line change @@ -105,7 +105,12 @@ jobs:
105
105
106
106
runs-on : ubuntu-latest
107
107
108
- permissions : write-all
108
+ permissions :
109
+ contents : write
110
+ issues : write
111
+ pull-requests : write
112
+ packages : write
113
+ statuses : write
109
114
110
115
steps :
111
116
- name : Checkout Repo
Original file line number Diff line number Diff line change 9
9
" examples/*"
10
10
],
11
11
"scripts" : {
12
- "task" : " turbo run --cache-dir .cache/turbo" ,
12
+ "task" : " yarn turbo run --cache-dir .cache/turbo" ,
13
13
"clean" : " yarn g:clean && yarn task clean" ,
14
14
"build" : " yarn task build" ,
15
15
"build:type" : " yarn tsc --build" ,
26
26
"coverage" : " yarn task coverage" ,
27
27
"coverage:all" : " yarn task coverage:all" ,
28
28
"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" ,
32
31
"publish" : " yarn build:release && changeset publish" ,
33
32
"g:clean" : " cd $INIT_CWD && yarn run -T rimraf .cache _release dist coverage .turbo tsconfig.tsbuildinfo node_modules/.vite" ,
34
33
"g:build" : " cd $INIT_CWD && yarn run -T vite build" ,
You can’t perform that action at this time.
0 commit comments