Skip to content

Commit 187e2e4

Browse files
committed
build: clear usages of yarn and update documentation
Replaces usgaes of `yarn` with `pnpm` and updates documentation where necessary.
1 parent d4d8500 commit 187e2e4

31 files changed

+158
-267
lines changed

.bazelrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ run --nolegacy_external_runfiles
2222
test --nolegacy_external_runfiles
2323

2424
# This flag is needed to so that the bazel cache is not invalidated
25-
# when running bazel via `yarn bazel`.
25+
# when running bazel via `pnpm bazel`.
2626
build --incompatible_strict_action_env
2727

2828
# Do not build runfile forests by default. If an execution strategy relies on runfile

.github/CODEOWNERS

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
/.husky/ @angular/dev-infra-components
55
/.ng-dev/ @angular/dev-infra-components
66
/.vscode/ @angular/dev-infra-components
7-
/.yarn/ @angular/dev-infra-components
87
/scripts/ @angular/dev-infra-components
98
/test/ @angular/dev-infra-components
109

.github/workflows/ci.material-aio.yml

+9-10
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ permissions: {}
1717
defaults:
1818
run:
1919
shell: bash
20-
working-directory: material.angular.io
2120

2221
env:
2322
# TODO: Remove when pnpm is exclusively used.
@@ -30,31 +29,31 @@ jobs:
3029
- name: Initialize environment
3130
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@e4bf37af223483ce00f9316d227fd62cd744dc4b
3231
- name: Install node modules
33-
run: yarn install --immutable
32+
run: pnpm install --frozen-lockfile
3433
- name: Execute Linting
35-
run: yarn bazel test --test_tag_filters=lint //...
34+
run: pnpm --cwd=docs bazel test --test_tag_filters=lint //...
3635

3736
build:
3837
runs-on: ubuntu-latest
3938
steps:
4039
- name: Initialize environment
4140
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@e4bf37af223483ce00f9316d227fd62cd744dc4b
4241
- name: Install node modules
43-
run: yarn install --immutable
42+
run: pnpm install --frozen-lockfile
4443
- name: Execute Direct Production Build (deploy usage)
45-
run: yarn prod-build
44+
run: pnpm -s --cwd=docs prod-build
4645
- name: Execute Build via Bazel
47-
run: yarn bazel build //...
46+
run: pnpm -s --cwd=docs bazel build //...
4847

4948
test:
5049
runs-on: ubuntu-latest
5150
steps:
5251
- name: Initialize environment
5352
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@e4bf37af223483ce00f9316d227fd62cd744dc4b
5453
- name: Install node modules
55-
run: yarn install --immutable
54+
run: pnpm install --frozen-lockfile
5655
- name: Execute Tests
57-
run: yarn bazel test --test_tag_filters=-lint,-e2e,-audit //...
56+
run: pnpm --cwd=docs bazel test --test_tag_filters=-lint,-e2e,-audit //...
5857
- name: Store Test Logs
5958
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
6059
if: always()
@@ -69,9 +68,9 @@ jobs:
6968
- name: Initialize environment
7069
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@e4bf37af223483ce00f9316d227fd62cd744dc4b
7170
- name: Install node modules
72-
run: yarn install --immutable
71+
run: pnpm install --frozen-lockfile
7372
- name: Execute Lighthouse Audit
74-
run: yarn bazel test --test_tag_filters=audit //...
73+
run: pnpm -s --cwd=docs bazel test --test_tag_filters=audit //...
7574
- name: Store Audit Logs
7675
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
7776
if: always()

.github/workflows/ci.yml

+30-30
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,25 @@ jobs:
2525
with:
2626
cache-node-modules: true
2727
- name: Install node modules
28-
run: yarn install --frozen-lockfile
28+
run: pnpm install --frozen-lockfile
2929
- name: Checking package externals
3030
run: |
3131
bazel build //:package_externals
32-
yarn check-package-externals $(bazel info bazel-bin)/package_externals.json
32+
pnpm check-package-externals $(bazel info bazel-bin)/package_externals.json
3333
- name: Checking entry-points configuration
3434
run: |
3535
bazel build //:entry_points_manifest
36-
yarn check-entry-point-setup $(bazel info bazel-bin)/entry_points_manifest.json
36+
pnpm check-entry-point-setup $(bazel info bazel-bin)/entry_points_manifest.json
3737
- name: Check OWNERS file
38-
run: yarn ownerslint
38+
run: pnpm ownerslint
3939
- name: Check for component id collisions
40-
run: yarn detect-component-id-collisions
40+
run: pnpm detect-component-id-collisions
4141
- name: Check style lint
42-
run: yarn stylelint
42+
run: pnpm stylelint
4343
- name: Check code lint
44-
run: yarn tslint
44+
run: pnpm tslint
4545
- name: Check for circular dependencies
46-
run: yarn -s ts-circular-deps:check
46+
run: pnpm -s ts-circular-deps:check
4747
- uses: ./.github/actions/slack
4848
if: failure()
4949
with:
@@ -64,9 +64,9 @@ jobs:
6464
with:
6565
google_credential: ${{ secrets.RBE_TRUSTED_BUILDS_USER }}
6666
- name: Install node modules
67-
run: yarn install --frozen-lockfile
67+
run: pnpm install --frozen-lockfile
6868
- name: Check API Goldens
69-
run: yarn bazel test goldens/...
69+
run: pnpm bazel test goldens/...
7070
- uses: ./.github/actions/slack
7171
if: failure()
7272
with:
@@ -87,9 +87,9 @@ jobs:
8787
with:
8888
google_credential: ${{ secrets.RBE_TRUSTED_BUILDS_USER }}
8989
- name: Install node modules
90-
run: yarn install --frozen-lockfile
90+
run: pnpm install --frozen-lockfile
9191
- name: Run e2e tests
92-
run: yarn e2e --flaky_test_attempts=2
92+
run: pnpm e2e --flaky_test_attempts=2
9393
- uses: ./.github/actions/slack
9494
if: failure()
9595
with:
@@ -110,9 +110,9 @@ jobs:
110110
with:
111111
google_credential: ${{ secrets.RBE_TRUSTED_BUILDS_USER }}
112112
- name: Install node modules
113-
run: yarn install --frozen-lockfile
113+
run: pnpm install --frozen-lockfile
114114
- name: Run integration tests
115-
run: yarn integration-tests
115+
run: pnpm integration-tests
116116
continue-on-error: true
117117
- uses: ./.github/actions/slack
118118
if: failure()
@@ -134,9 +134,9 @@ jobs:
134134
with:
135135
google_credential: ${{ secrets.RBE_TRUSTED_BUILDS_USER }}
136136
- name: Install node modules
137-
run: yarn install --frozen-lockfile
137+
run: pnpm install --frozen-lockfile
138138
- name: Run linker AOT tests
139-
run: yarn test-linker-aot
139+
run: pnpm test-linker-aot
140140
- uses: ./.github/actions/slack
141141
if: failure()
142142
with:
@@ -157,9 +157,9 @@ jobs:
157157
with:
158158
google_credential: ${{ secrets.RBE_TRUSTED_BUILDS_USER }}
159159
- name: Install node modules
160-
run: yarn install --frozen-lockfile
160+
run: pnpm install --frozen-lockfile
161161
- name: Run linker JIT tests
162-
run: yarn test-linker-jit
162+
run: pnpm test-linker-jit
163163
- uses: ./.github/actions/slack
164164
if: failure()
165165
with:
@@ -180,7 +180,7 @@ jobs:
180180
with:
181181
google_credential: ${{ secrets.RBE_TRUSTED_BUILDS_USER }}
182182
- name: Install node modules
183-
run: yarn install --frozen-lockfile
183+
run: pnpm install --frozen-lockfile
184184
- name: Run tests
185185
run: bazel test --build_tag_filters=-e2e --test_tag_filters=-e2e --build_tests_only -- src/...
186186
env:
@@ -205,7 +205,7 @@ jobs:
205205
with:
206206
google_credential: ${{ secrets.RBE_TRUSTED_BUILDS_USER }}
207207
- name: Install node modules
208-
run: yarn install --frozen-lockfile
208+
run: pnpm install --frozen-lockfile
209209
- name: Run tests
210210
run: bazel build --build_tag_filters=-docs-package,-release-package -- src/...
211211
- uses: ./.github/actions/slack
@@ -226,15 +226,15 @@ jobs:
226226
- name: Setup Bazel RBE
227227
uses: angular/dev-infra/github-actions/bazel/configure-remote@e4bf37af223483ce00f9316d227fd62cd744dc4b
228228
- name: Install node modules
229-
run: yarn install --frozen-lockfile
229+
run: pnpm install --frozen-lockfile
230230
- name: Build and Verify Release Output
231-
run: yarn build-and-check-release-output
231+
run: pnpm build-and-check-release-output
232232
- name: Verify tooling setup
233-
run: yarn check-tooling-setup
233+
run: pnpm check-tooling-setup
234234
- name: Build Docs Content
235-
run: yarn build-docs-content
235+
run: pnpm build-docs-content
236236
- name: Build Docs Content
237-
run: yarn build-docs-content
237+
run: pnpm build-docs-content
238238
- name: Publish Snapshots
239239
run: ./scripts/circleci/publish-snapshots.sh
240240
env:
@@ -261,13 +261,13 @@ jobs:
261261
- name: Setup Bazel RBE
262262
uses: angular/dev-infra/github-actions/bazel/configure-remote@e4bf37af223483ce00f9316d227fd62cd744dc4b
263263
- name: Install node modules
264-
run: yarn install --frozen-lockfile
264+
run: pnpm install --frozen-lockfile
265265
- name: Build and Verify Release Output
266-
run: yarn build-and-check-release-output
266+
run: pnpm build-and-check-release-output
267267
- name: Verify tooling setup
268-
run: yarn check-tooling-setup
268+
run: pnpm check-tooling-setup
269269
- name: Deploy the docs app
270-
run: yarn ci-push-deploy-docs-app
270+
run: pnpm ci-push-deploy-docs-app
271271
env:
272272
CIRCLE_BRANCH: ${{ github.ref_name }}
273273
CIRCLE_SHA1: ${{ github.sha }}
@@ -291,7 +291,7 @@ jobs:
291291
with:
292292
cache-node-modules: true
293293
- name: Install node modules
294-
run: yarn install --frozen-lockfile
294+
run: pnpm install --frozen-lockfile
295295
- name: Setup Bazel
296296
uses: angular/dev-infra/github-actions/bazel/setup@e4bf37af223483ce00f9316d227fd62cd744dc4b
297297
- name: Setup Browserstack Variables

.github/workflows/deploy-dev-app-main-push.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525
- name: Setup Bazel RBE
2626
uses: angular/dev-infra/github-actions/bazel/configure-remote@e4bf37af223483ce00f9316d227fd62cd744dc4b
2727
- name: Install node modules
28-
run: yarn install --frozen-lockfile
28+
run: pnpm install --frozen-lockfile
2929

3030
- name: Building dev-app
3131
run: |
32-
yarn -s bazel build //src/dev-app:web_package --symlink_prefix=dist/
32+
pnpm -s bazel build //src/dev-app:web_package --symlink_prefix=dist/
3333
cp -R dist/bin/src/dev-app/web_package dist/dev-app-web-pkg
3434
3535
- name: Configure Firebase deploy target

.github/workflows/pr.material-aio.yml

+9-12
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ permissions: {}
1515
defaults:
1616
run:
1717
shell: bash
18-
working-directory: material.angular.io
1918

2019
env:
2120
# TODO: Remove when pnpm is exclusively used.
@@ -28,31 +27,29 @@ jobs:
2827
- name: Initialize environment
2928
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@e4bf37af223483ce00f9316d227fd62cd744dc4b
3029
- name: Install node modules
31-
run: yarn install --immutable
30+
run: pnpm install --frozen-lockfile
3231
- name: Execute Linting
33-
run: yarn bazel test --test_tag_filters=lint //...
32+
run: pnpm bazel test --test_tag_filters=lint //docs/...
3433

3534
build:
3635
runs-on: ubuntu-latest
3736
steps:
3837
- name: Initialize environment
3938
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@e4bf37af223483ce00f9316d227fd62cd744dc4b
4039
- name: Install node modules
41-
run: yarn install --immutable
42-
- name: Execute Direct Production Build (deploy usage)
43-
run: yarn prod-build
44-
- name: Execute Build via Bazel
45-
run: yarn bazel build //...
40+
run: pnpm install --frozen-lockfile
41+
- name: Execute Build
42+
run: pnpm bazel build //docs/...
4643

4744
test:
4845
runs-on: ubuntu-latest
4946
steps:
5047
- name: Initialize environment
5148
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@e4bf37af223483ce00f9316d227fd62cd744dc4b
5249
- name: Install node modules
53-
run: yarn install --immutable
50+
run: pnpm install --frozen-lockfile
5451
- name: Execute Tests
55-
run: yarn bazel test --test_tag_filters=-lint,-e2e,-audit //...
52+
run: pnpm bazel test --test_tag_filters=-lint,-e2e,-audit //docs/...
5653
- name: Store Test Logs
5754
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
5855
if: always()
@@ -67,9 +64,9 @@ jobs:
6764
- name: Initialize environment
6865
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@e4bf37af223483ce00f9316d227fd62cd744dc4b
6966
- name: Install node modules
70-
run: yarn install --immutable
67+
run: pnpm install --frozen-lockfile
7168
- name: Execute Lighthouse Audit
72-
run: yarn bazel test --test_tag_filters=audit //...
69+
run: pnpm bazel test --test_tag_filters=audit //docs/...
7370
- name: Store Audit Logs
7471
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
7572
if: always()

0 commit comments

Comments
 (0)