From 789b45ce59c75e04ff2409342aacaaa2cc715561 Mon Sep 17 00:00:00 2001 From: hrodmn Date: Thu, 7 Nov 2024 05:36:46 -0600 Subject: [PATCH] use npx cdk instead of npm run cdk --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 53581af..8dd0d54 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 }} @@ -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 }}