Skip to content

Commit ee62084

Browse files
authored
fix: install the netlify CLI properly rather than relying on npx
1 parent 3143821 commit ee62084

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/site-preview.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ jobs:
4646
website/node_modules
4747
# An explicit key for restoring and saving the cache
4848
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
49+
- name: Install netlify CLI
50+
run: npm install netlify-cli -g
51+
working-directory: data
4952
- run: yarn
5053
working-directory: data
5154
env:
@@ -54,7 +57,7 @@ jobs:
5457
- run: sed -i "s|^\s*environment.*$||g" netlify.toml
5558
working-directory: data
5659
# Build and deploy the data repo
57-
- run: npx netlify deploy --build --alias data-preview-$CI_REF_NAME_SLUG
60+
- run: netlify deploy --build --alias data-preview-$CI_REF_NAME_SLUG
5861
working-directory: data
5962
env:
6063
GITHUB_REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Use the repo specific token

0 commit comments

Comments
 (0)