diff --git a/.github/workflows/adev-preview-build.yml b/.github/workflows/adev-preview-build.yml index 6011e2ab3b..7438dae7bc 100644 --- a/.github/workflows/adev-preview-build.yml +++ b/.github/workflows/adev-preview-build.yml @@ -23,10 +23,12 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: submodules: true + - name: setup pnpm + uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0 - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version-file: '.node-version' - cache: yarn + cache: pnpm - uses: bazel-contrib/setup-bazel@e403ad507104847c3539436f64a9e9eecc73eeec # 0.8.5 with: bazelisk-cache: true @@ -43,8 +45,8 @@ jobs: # CI supports colors but Bazel does not detect it. common --color=yes - - run: yarn install - - run: yarn build + - run: pnpm install --frozen-lockfile + - run: pnpm run build - uses: angular/dev-infra/github-actions/previews/pack-and-upload-artifact@01c8c16f830d02110c28640aea16f145a7937080 with: workflow-artifact-name: 'adev-preview' diff --git a/.github/workflows/adev-production-deploy.yml b/.github/workflows/adev-production-deploy.yml index 616161d240..5586944fb6 100644 --- a/.github/workflows/adev-production-deploy.yml +++ b/.github/workflows/adev-production-deploy.yml @@ -15,10 +15,12 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: submodules: true + - name: setup pnpm + uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0 - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version-file: '.node-version' - cache: yarn + cache: pnpm - uses: bazel-contrib/setup-bazel@e403ad507104847c3539436f64a9e9eecc73eeec # 0.8.5 with: bazelisk-cache: true @@ -35,8 +37,8 @@ jobs: # CI supports colors but Bazel does not detect it. common --color=yes - - run: yarn install - - run: yarn build + - run: pnpm install --frozen-lockfile + - run: pnpm run build - name: Deploy to Firebase Hosting uses: FirebaseExtended/action-hosting-deploy@0cbcac4740c2bfb00d632f0b863b57713124eb5a # v0.9.0 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aed24b5d88..d9a301e5cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,30 +12,34 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: submodules: true + - name: setup pnpm + uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0 - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version-file: '.node-version' - cache: yarn - - run: yarn install - - run: yarn lint - - run: yarn test + cache: pnpm + - run: pnpm install + - run: pnpm run lint + - run: pnpm run test build-ubuntu: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: submodules: true + - name: setup pnpm + uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0 - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version-file: '.node-version' - cache: yarn + cache: pnpm - uses: bazel-contrib/setup-bazel@0.15.0 # 0.15.0 with: bazelisk-cache: true disk-cache: true repository-cache: true - - run: yarn install - - run: yarn build + - run: pnpm install + - run: pnpm run build # build-windows: # runs-on: windows-latest # steps: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 871407fca7..d5b51c4c2b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -50,8 +50,8 @@ $ git clone git@github.com:angular/angular-ja.git このリポジトリではsubmoduleを使って翻訳元リポジトリと統合しています。初回のビルド時にsubmoduleの同期やビルドディレクトリの初期化が行われます。15分ほどかかることがあるため、気長にお待ちください。 ``` -$ yarn install -$ yarn build +$ pnpm install +$ pnpm build ``` ### 開発用サーバーを使った作業 @@ -59,7 +59,7 @@ $ yarn build 開発用ローカルサーバーを起動すると、ビルド結果を確認しながら翻訳作業ができます。 ``` -$ yarn start +$ pnpm start ``` - デフォルトでは `http://localhost:4200` でサーバーが立ち上がります @@ -68,7 +68,7 @@ $ yarn start `start` コマンドでは、翻訳用にパッチが適用されたアプリケーションコードを含む `build` ディレクトリを初期化せずに再利用します。初期化して開始したい場合は、 `--init` オプションを指定してください。 ``` -$ yarn start --init +$ pnpm start --init ``` ### 文体チェック・自動修正 @@ -76,7 +76,7 @@ $ yarn start --init textlintを使って文体チェックを行うことができます。次のコマンドで文体チェックを行い、自動修正を行うことができます。 ``` -$ yarn lint [--fix] +$ pnpm lint [--fix] ``` @@ -85,7 +85,7 @@ $ yarn lint [--fix] 次のコマンドでデプロイ可能な生成物をビルドします。 ``` -$ yarn build +$ pnpm build ``` ビルドが完了すると、 `build/dist/bin/adev/build` ディレクトリにビルド結果が出力されます。 diff --git a/UPDATE_ORIGIN.md b/UPDATE_ORIGIN.md index 484748c1c3..7b9b3fd141 100644 --- a/UPDATE_ORIGIN.md +++ b/UPDATE_ORIGIN.md @@ -17,7 +17,7 @@ GitHub上で `angular/angular` リポジトリのコミットハッシュを入 1で入手したコミットハッシュを指定して、`angular/angular` リポジトリを更新します。 ```sh -$ yarn update-origin +$ pnpm update-origin ``` コミットハッシュを指定しない場合は、originの更新は行わず、現在のsubmoduleからファイルのコピーを再度実行します。 diff --git a/adev-ja/src/app/core/layout/navigation/navigation.component.en.html b/adev-ja/src/app/core/layout/navigation/navigation.component.en.html index 4b2ea426ec..6416329965 100644 --- a/adev-ja/src/app/core/layout/navigation/navigation.component.en.html +++ b/adev-ja/src/app/core/layout/navigation/navigation.component.en.html @@ -305,7 +305,7 @@