mirror of
https://github.com/Sea-Haven-Industries/.github.git
synced 2026-09-30 09:23:11 +00:00
Guard npm ci on a lockfile so Python CDK repos (npx) don't fail deploy
This commit is contained in:
parent
6db9f44a47
commit
87318ac8dd
1 changed files with 3 additions and 0 deletions
3
.github/workflows/cd-cdk.yaml
vendored
3
.github/workflows/cd-cdk.yaml
vendored
|
|
@ -77,6 +77,9 @@ jobs:
|
||||||
python-version: ${{ inputs.python-version }}
|
python-version: ${{ inputs.python-version }}
|
||||||
|
|
||||||
- name: Install Node dependencies
|
- name: Install Node dependencies
|
||||||
|
# Only when a lockfile exists (TS CDK repos). Python CDK repos have no
|
||||||
|
# package.json and use `npx -y cdk`, so skip rather than fail npm ci.
|
||||||
|
if: ${{ hashFiles(format('{0}/package-lock.json', inputs.cdk-dir)) != '' }}
|
||||||
working-directory: ${{ inputs.cdk-dir }}
|
working-directory: ${{ inputs.cdk-dir }}
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue