Skip to content

Commit

Permalink
ci: checkout repo in canary workflow (#3475)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Feb 3, 2022
1 parent 1392ae9 commit 5740cbd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/canary.yaml
Expand Up @@ -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:
Expand Down

0 comments on commit 5740cbd

Please sign in to comment.