@@ -22,43 +22,45 @@ jobs:
2222 shell : bash
2323
2424 steps :
25+ - name : Install pnpm
26+ run : npm install -g pnpm
27+
2528 - name : ⤵️ Check out code from GitHub
2629 uses : actions/checkout@v3
2730
2831 - name : 🏗 Setup node version
2932 uses : actions/setup-node@v3
3033 with :
3134 node-version : 16
32- cache : ' npm '
35+ cache : ' pnpm '
3336 - run : |
34- npm i -g npm@7
35- npm i -g npm-check-updates
37+ pnpm install --frozen-lockfile
3638
3739 - name : 🏗 Setup Angular Project Version ${{ matrix.angular-version }}
3840 run : |
3941 mkdir -p tmp
4042 cd tmp
41- npx @angular/cli@${{ matrix.angular-version }} new --create-application --skip-install --defaults -g -t -s -S angular${{ matrix.angular-version }}
43+ pnpm dlx @angular/cli@${{ matrix.angular-version }} new --create-application --package-manager=pnpm --skip-install --defaults -g -t -s -S angular${{ matrix.angular-version }}
4244 cd angular${{ matrix.angular-version }}
4345 ncu --target minor -u jasmine-core
44- npm install
46+ pnpm install
4547
4648 - name : 🏗 Build Library
4749 run : |
48- npm ci
49- npm run build
50+ pnpm install --frozen-lockfile
51+ pnpm build
5052 mkdir -p tmp/dist
5153 cd out
52- npm pack --pack-destination ../tmp/dist
54+ pnpm pack --pack-destination ../tmp/dist
5355 cd ../tmp/dist
5456 echo "LIBRARY=$(find . -mindepth 1 -print -quit)" >> $GITHUB_ENV
5557
5658 - name : 🔗 Link Library into Angular Project Version ${{ matrix.angular-version }}
5759 run : |
5860 cd tmp/angular${{ matrix.angular-version }}
59- npm install --save ../dist/${{ env.LIBRARY }}
60- npm install
61- npx ng version
61+ pnpm install --save ../dist/${{ env.LIBRARY }}
62+ pnpm install
63+ pnpm exec ng version
6264
6365 - name : ✅ Add Linter configuration to angular.json into Angular Project Version ${{ matrix.angular-version }}
6466 run : |
7779 run : |
7880 cd tmp/angular${{ matrix.angular-version }}
7981 set +e
80- npx ng lint > result.txt
82+ pnpm exec ng lint > result.txt
8183 set -e
8284 cat result.txt
8385 grep -Fx "✖ 5 problems (5 errors, 0 warnings)" result.txt && echo "SUCCESS=1" >> $GITHUB_ENV || echo "SUCCESS=0" >> $GITHUB_ENV
0 commit comments