File tree Expand file tree Collapse file tree 5 files changed +6
-24
lines changed
Expand file tree Collapse file tree 5 files changed +6
-24
lines changed Original file line number Diff line number Diff line change @@ -12,19 +12,10 @@ jobs:
1212 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1313 - name : Install pnpm
1414 uses : pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0
15+ - uses : actions/setup-node@v4.0.1
1516 with :
16- standalone : true
17- - name : Get pnpm store directory
18- shell : bash
19- run : |
20- echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
21- - uses : actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
22- name : Setup pnpm cache
23- with :
24- path : ${{ env.STORE_PATH }}
25- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
26- restore-keys : |
27- ${{ runner.os }}-pnpm-store-
17+ cache : " pnpm"
18+ node-version-file : " .node-version"
2819 - name : Install dependencies
2920 run : pnpm install --frozen-lockfile --strict-peer-dependencies
3021 - name : Check types
Original file line number Diff line number Diff line change 1+ 20.10.0
Original file line number Diff line number Diff line change 1- use-node-version = 20.10.0
2-
31save-exact = true
42auto-install-peers = true
53strict-peer-dependencies = true
Original file line number Diff line number Diff line change 1515 ],
1616 "dependencyDashboardAutoclose" : true ,
1717 "prConcurrentLimit" : 3 ,
18- "customManagers" : [
19- {
20- "customType" : " regex" ,
21- "fileMatch" : [" (^|/)\\ .npmrc$" ],
22- "matchStrings" : [" use-node-version=(?<currentValue>.*?)\\ n" ],
23- "depNameTemplate" : " node" ,
24- "datasourceTemplate" : " node-version"
25- }
26- ],
2718 "packageRules" : [
2819 {
2920 "matchDepTypes" : [" dependencies" , " require" ],
Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ ENV PATH="$PNPM_HOME:$PATH"
2424WORKDIR /package
2525COPY --link --from=fetch-pnpm /pnpm/ /pnpm/
2626RUN pnpm config set store-dir /.pnpm-store
27- COPY --link .npmrc ./
27+ COPY --link .npmrc .node-version ./
28+ RUN echo "use-node-version=`cat .node-version`" >> .npmrc
2829RUN --mount=type=cache,target=/.pnpm-store \
2930# package.json: for simple-git-hooks
3031 --mount=type=bind,source=package.json,target=package.json \
You can’t perform that action at this time.
0 commit comments