Skip to content

Commit

Permalink
use npx cdk instead of npm run cdk
Browse files Browse the repository at this point in the history
  • Loading branch information
hrodmn committed Nov 7, 2024
1 parent 462eee4 commit 789b45c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
- name: Set up node
uses: actions/setup-node@v4
with:
node-version: '14.x'
node-version: 22

- name: Install cdk
run: npm install -g
Expand All @@ -97,7 +97,7 @@ jobs:
# Build and deploy to the development environment whenever there is a push to main or dev
- name: Build & Deploy Development
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'
run: npm run cdk -- deploy titiler-cmr-staging --require-approval never
run: npx cdk -- deploy titiler-cmr-staging --require-approval never
env:
# STACK_ALARM_EMAIL: ${{ secrets.ALARM_EMAIL }}
STACK_ROLE_ARN: ${{ secrets.lambda_role_arn }}
Expand All @@ -107,7 +107,7 @@ jobs:
# Build and deploy to production deployment whenever there a new tag is pushed
- name: Build & Deploy Production
if: startsWith(github.ref, 'refs/tags/v')
run: npm run cdk -- deploy titiler-cmr-production --require-approval never
run: npx cdk -- deploy titiler-cmr-production --require-approval never
env:
# STACK_ALARM_EMAIL: ${{ secrets.ALARM_EMAIL }}
STACK_ROLE_ARN: ${{ secrets.lambda_role_arn }}
Expand Down

0 comments on commit 789b45c

Please sign in to comment.