From 178019791ac98cb1a99e84f9aa378323898a4a9f Mon Sep 17 00:00:00 2001 From: William Wong Date: Thu, 7 Dec 2023 13:44:44 -0800 Subject: [PATCH] Enable Terrapin before setting up Node to improve cache --- .github/workflows/pull-request-validation.yml | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/pull-request-validation.yml b/.github/workflows/pull-request-validation.yml index 3c7f73fd90..0214611b28 100644 --- a/.github/workflows/pull-request-validation.yml +++ b/.github/workflows/pull-request-validation.yml @@ -33,16 +33,16 @@ jobs: steps: - uses: actions/checkout@v4 + - if: "env.skip-secure-feed != 'true'" + name: Enable secure feed + run: npx https://aka.ms/EnableSecureFeed + - name: Use Node.js ${{ env.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ env.node-version }} cache: npm - - if: "env.skip-secure-feed != 'true'" - name: Enable secure feed - run: npx https://aka.ms/EnableSecureFeed - - run: npm clean-install - run: npm run bootstrap @@ -84,16 +84,16 @@ jobs: steps: - uses: actions/checkout@v4 + - if: "env.skip-secure-feed != 'true'" + name: Enable secure feed + run: npx https://aka.ms/EnableSecureFeed + - name: Use Node.js ${{ env.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ env.node-version }} cache: npm - - if: "env.skip-secure-feed != 'true'" - name: Enable secure feed - run: npx https://aka.ms/EnableSecureFeed - - run: npm clean-install - run: npm run bootstrap @@ -109,16 +109,16 @@ jobs: steps: - uses: actions/checkout@v4 + - if: "env.skip-secure-feed != 'true'" + name: Enable secure feed + run: npx https://aka.ms/EnableSecureFeed + - name: Use Node.js ${{ env.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ env.node-version }} cache: npm - - if: "env.skip-secure-feed != 'true'" - name: Enable secure feed - run: npx https://aka.ms/EnableSecureFeed - - run: npm clean-install - run: npm run bootstrap @@ -170,15 +170,15 @@ jobs: shard-count: [20] steps: + - if: "env.skip-secure-feed != 'true'" + name: Enable secure feed + run: npx https://aka.ms/EnableSecureFeed + - name: Use Node.js ${{ env.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ env.node-version }} - - if: "env.skip-secure-feed != 'true'" - name: Enable secure feed - run: npx https://aka.ms/EnableSecureFeed - - name: Download Docker artifact uses: actions/download-artifact@v3 with: