File tree Expand file tree Collapse file tree 1 file changed +22
-7
lines changed
Expand file tree Collapse file tree 1 file changed +22
-7
lines changed Original file line number Diff line number Diff line change @@ -22,23 +22,38 @@ jobs:
2222 with :
2323 node-version : 16.x
2424
25- - uses : actions/cache@v2
26- id : yarn-cache
25+ - uses : pnpm/action-setup@v2
2726 with :
28- path : ' **/node_modules'
29- key : ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
27+ version : 7
28+ run_install : false
29+
30+ - name : Get pnpm store directory
31+ id : pnpm-cache
32+ shell : bash
33+ run : |
34+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
35+
36+ - uses : actions/cache@v3
37+ name : Setup pnpm cache
38+ with :
39+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
40+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
41+ restore-keys : |
42+ ${{ runner.os }}-pnpm-store-
3043
3144 - name : Install dependencies
32- if : steps.yarn-cache.outputs.cache-hit != 'true'
33- run : yarn --frozen-lockfile --ignore-scripts
45+ run : pnpm install
46+
47+ - name : Check prettier
48+ run : pnpm prettier --cache -c --loglevel=error .
3449
3550 - name : Create Release Pull Request or Publish to npm
3651 id : changesets
3752 # https://github.com/changesets/action
3853 uses : changesets/action@v1
3954 with :
4055 createGithubReleases : false
41- publish : yarn release
56+ publish : pnpm release
4257 env :
4358 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4459 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments