File tree Expand file tree Collapse file tree 1 file changed +24
-17
lines changed Expand file tree Collapse file tree 1 file changed +24
-17
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- " 6.0"
7
7
8
+ env :
9
+ node-version : 20.x
10
+
8
11
jobs :
9
12
build_deploy :
10
13
runs-on : ubuntu-latest
@@ -35,31 +38,35 @@ jobs:
35
38
- name : Prepare deploy
36
39
run : make deploy
37
40
38
- # node setup
39
- - name : Use Node.js 16
41
+ - name : Use Node.js ${{ env.node-version }}
40
42
uses : actions/setup-node@v3
41
43
with :
42
- node-version : ' 16'
43
- - name : Install Yarn
44
- run : npm install -g yarn
45
- # node cache
46
- - name : Get yarn cache directory path
47
- id : yarn-cache-dir-path
48
- working-directory : submodules/volto
49
- run : echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
44
+ node-version : ${{ env.node-version }}
45
+
46
+ - uses : pnpm/action-setup@v2
47
+ name : Install pnpm
48
+ with :
49
+ version : 8
50
+ run_install : false
51
+
52
+ - name : Get pnpm store directory
53
+ shell : bash
54
+ run : |
55
+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
56
+
50
57
- uses : actions/cache@v3
51
- id : yarn-cache # use this to check for ` cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
58
+ name : Setup pnpm cache
52
59
with :
53
- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
54
- key : ${{ runner.os }}-yarn- ${{ hashFiles('**/yarn. lock') }}
60
+ path : ${{ env.STORE_PATH }}
61
+ key : ${{ runner.os }}-pnpm-store- ${{ hashFiles('**/pnpm- lock.yaml ') }}
55
62
restore-keys : |
56
- ${{ runner.os }}-yarn -
63
+ ${{ runner.os }}-pnpm-store -
57
64
58
65
- name : StoryBook build
66
+ working-directory : submodules/volto
59
67
run : |
60
- cd submodules/volto
61
- yarn install --immutable
62
- yarn build-storybook -o ../../_build/html/storybook
68
+ pnpm i
69
+ make storybook-build
63
70
64
71
- name : Deploy to server
65
72
id : deploy
You can’t perform that action at this time.
0 commit comments