@@ -21,41 +21,37 @@ jobs:
2121 with :
2222 fetch-depth : 0
2323
24+ - name : Install pnpm
25+ uses : pnpm/action-setup@v4
26+
2427 - name : Use Node.js ${{ matrix.node-version }}
2528 uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2629 with :
2730 registry-url : " https://registry.npmjs.org"
2831 node-version : ${{ matrix.node-version }}
29-
30- - uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
31- id : yarn-cache
32- with :
33- path : .yarn
34- key : ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
35- restore-keys : |
36- ${{ runner.os }}-yarn-
32+ cache : ' pnpm'
3733
3834 - uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
3935 id : nextjs-cache
4036 with :
4137 path : packages/documentation/.next/cache
42- key : ${{ runner.os }}-nextjs-${{ hashFiles('yarn. lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
38+ key : ${{ runner.os }}-nextjs-${{ hashFiles('pnpm- lock.yaml ') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
4339 restore-keys : |
44- ${{ runner.os }}-nextjs-${{ hashFiles('yarn. lock') }}-
40+ ${{ runner.os }}-nextjs-${{ hashFiles('pnpm- lock.yaml ') }}-
4541
46- - run : corepack enable
42+ - run : pnpm install --frozen-lockfile
4743
48- - run : yarn --immutable
44+ - run : pnpm ci-build
45+ - run : pnpm ci-test
46+ - run : pnpm ci-lint
4947
50- - run : yarn ci-build
51- - run : yarn ci-test
52- - run : yarn ci-lint
48+ - run : pnpm install --frozen-lockfile
5349
54- - run : yarn integration:generate
55- - run : yarn integration:validate
50+ - run : pnpm integration:generate
51+ - run : pnpm integration:validate
5652
57- - run : yarn e2e:generate
58- - run : yarn e2e:validate
53+ - run : pnpm e2e:generate
54+ - run : pnpm e2e:validate
5955
6056 - name : Check for uncommitted changes
6157 run : ./scripts/assert-clean-working-directory.sh
@@ -71,13 +67,13 @@ jobs:
7167# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7268#
7369# - name: Publish to NPM
74- # run: echo 'publish release' #yarn lerna publish --no-private --force-publish --yes --conventional-commits
70+ # run: echo 'publish release' #pnpm lerna publish --no-private --force-publish --yes --conventional-commits
7571# if: github.ref == 'refs/heads/main'
7672# env:
7773# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7874#
7975# - name: Publish to NPM (Alpha)
80- # run: echo 'publish alpha release' #yarn lerna publish --no-private --force-publish --yes --conventional-commits --canary
76+ # run: echo 'publish alpha release' #pnpm lerna publish --no-private --force-publish --yes --conventional-commits --canary
8177# if: github.ref != 'refs/heads/main'
8278# env:
8379# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments