@@ -154,29 +154,40 @@ jobs:
154154 uses : actions/checkout@v3
155155 with :
156156 ref : " ${{ github.event.pull_request.head.sha }}"
157- - name : Get yarn cache directory path
158- id : yarn-cache-dir-path
159- run : echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
160- - name : Cache yarn intermediate products
161- uses : actions/cache@v3
162- with :
163- path : " ${{ steps.yarn-cache-dir-path.outputs.dir }}"
164- key : " ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}"
165- restore-keys : " ${{ runner.os }}-yarn-"
166157 - name : Configure node
167158 uses : actions/setup-node@v3
168159 with :
169160 node-version : 18.14
161+ - name : Get pnpm version from package.json
162+ id : pnpm-version
163+ run : ' echo "pnpm_version=$(node -p '' require(`./ui/frontend/package.json`).engines.pnpm'' )" >> $GITHUB_OUTPUT
164+
165+ '
166+ - name : Install pnpm
167+ uses : pnpm/action-setup@v2.4.0
168+ with :
169+ version : " ${{ steps.pnpm-version.outputs.pnpm_version }}"
170+ - name : Get pnpm store directory
171+ id : pnpm-cache-dir-path
172+ run : ' echo "dir=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
173+
174+ '
175+ - name : Cache pnpm intermediate products
176+ uses : actions/cache@v3
177+ with :
178+ path : " ${{ steps.pnpm-cache-dir-path.outputs.dir }}"
179+ key : " ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}"
180+ restore-keys : " ${{ runner.os }}-pnpm-\n "
170181 - name : Install dependencies
171- run : yarn --cwd ui/frontend/
182+ run : pnpm --dir ui/frontend/ install
172183 - name : Run tests
173- run : yarn --cwd ui/frontend/ test
184+ run : pnpm --dir ui/frontend/ run test
174185 - name : Lint
175- run : yarn --cwd ui/frontend/ test:lint
186+ run : pnpm --dir ui/frontend/ run test:lint
176187 - name : Style
177- run : yarn --cwd ui/frontend/ test:style
188+ run : pnpm --dir ui/frontend/ run test:style
178189 - name : Build frontend
179- run : yarn --cwd ui/frontend/ run build:production
190+ run : pnpm --dir ui/frontend/ run build:production
180191 - name : Save frontend artifact
181192 uses : actions/upload-artifact@v3
182193 with :
0 commit comments