File tree Expand file tree Collapse file tree 1 file changed +22
-12
lines changed Expand file tree Collapse file tree 1 file changed +22
-12
lines changed Original file line number Diff line number Diff line change @@ -11,31 +11,41 @@ jobs:
1111 steps :
1212 - name : Checkout
1313 uses : actions/checkout@v3
14-
15- - name : Cache PNPM
16- uses : actions/cache@v3
1714 with :
18- path : ~/.pnpm-store
19- key : ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }}
20- restore-keys : |
21- ${{ runner.os }}-node-
15+ submodules : true
2216
23- - name : Setup Node
17+ - name : Install Node.js
2418 uses : actions/setup-node@v3
2519 with :
2620 node-version : 16
2721
28- - name : Installing dependencies
29- 22+ - name : Install pnpm
23+ uses : pnpm/action-setup@v2
24+ id : pnpm-install
3025 with :
31- version : 7.x.x
26+ version : 7
3227 run_install : |
33- - args: [--frozen-lockfile]
28+ args: [--frozen-lockfile]
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+ - name : Setup pnpm cache
37+ uses : actions/cache@v3
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-
3443
3544 - name : Build packages
3645 run : pnpm build
3746
3847 - name : Publish packages
48+ shell : bash
3949 run : |
4050 echo "//registry.npmjs.org/:_authToken="${{secrets.NPM_TOKEN}}"" > ~/.npmrc
4151 pnpm -r --filter='./packages/*' publish --access public
You can’t perform that action at this time.
0 commit comments