Skip to content

Commit 5740cbd

Browse files
ci: checkout repo in canary workflow (#3475)
1 parent 1392ae9 commit 5740cbd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/canary.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,22 @@ jobs:
1414
name: Publish Canary
1515
if: ${{ github.event.workflow_run.event == 'pull_request' }}
1616
steps:
17+
- name: Checkout repo
18+
uses: actions/checkout@v2
19+
with:
20+
persist-credentials: false
21+
1722
- name: Setup Node.js
1823
uses: actions/setup-node@v2
1924
with:
25+
cache: npm
2026
node-version: ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
2127
# 'registry-url' is required for 'npm publish'
2228
registry-url: 'https://registry.npmjs.org'
2329

30+
- name: Install Dependencies
31+
run: npm ci --ignore-scripts
32+
2433
- name: Download event.json
2534
run: gh run download "$CI_WORKFLOW_ID" -n event.json
2635
env:

0 commit comments

Comments
 (0)