From e0249b49abc46668093b87a0667d755a9d3c9d4b Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Thu, 3 Feb 2022 17:46:08 +0200 Subject: [PATCH] ci: checkout repo in canary workflow --- .github/workflows/canary.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/canary.yaml b/.github/workflows/canary.yaml index c4e92529bc..f6bd11a772 100644 --- a/.github/workflows/canary.yaml +++ b/.github/workflows/canary.yaml @@ -14,13 +14,22 @@ jobs: name: Publish Canary if: ${{ github.event.workflow_run.event == 'pull_request' }} steps: + - name: Checkout repo + uses: actions/checkout@v2 + with: + persist-credentials: false + - name: Setup Node.js uses: actions/setup-node@v2 with: + cache: npm node-version: ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }} # 'registry-url' is required for 'npm publish' registry-url: 'https://registry.npmjs.org' + - name: Install Dependencies + run: npm ci --ignore-scripts + - name: Download event.json run: gh run download "$CI_WORKFLOW_ID" -n event.json env: