From e4c120dfd145f3c149922ed368aafe62a805ff72 Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Wed, 22 Sep 2021 15:27:30 -0500 Subject: [PATCH] Checkout the top-level npm package manifests before configuring npm in the staging deployment workflow (#21661) --- .github/workflows/staging-deploy-pr.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/staging-deploy-pr.yml b/.github/workflows/staging-deploy-pr.yml index 65c7c7eec7..c2161367d2 100644 --- a/.github/workflows/staging-deploy-pr.yml +++ b/.github/workflows/staging-deploy-pr.yml @@ -115,6 +115,13 @@ jobs: target_url: ACTIONS_RUN_LOG }) + - if: ${{ github.repository == 'github/docs-internal' }} + name: Download the top-level npm manifest + uses: Bhacaz/checkout-files@c8f01756bfd894ba746d5bf48205e19000b0742b + with: + files: package.json package-lock.json + token: ${{ secrets.GITHUB_TOKEN }} + - if: ${{ github.repository == 'github/docs-internal' }} name: Setup node to clone early access uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f