From 0b2f4943a7b334e3e1d5e779e17284bc5d7325d5 Mon Sep 17 00:00:00 2001 From: Allan Tan <92118801+AllanT102@users.noreply.github.com> Date: Mon, 15 Jul 2024 22:33:36 -0400 Subject: [PATCH] Allan/test gh actions fix (#361) * changed to v4 * update * revereted deploy step * revereted deploy step * test master yml file * test serverlessv4 * test remove global download --- .github/workflows/deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 02438b26..90a3471e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,8 +29,8 @@ jobs: - name: Install Serverless CLI and dependencies run: | - sudo npm i -g serverless@4 - npm ci + npm ci + npm i serverless@4 - name: 'Deploy Dev' if: github.ref == 'refs/heads/dev' @@ -48,7 +48,7 @@ jobs: run: | cd services for DIR in *; do - (cd $DIR && sls deploy --conceal \ + (cd $DIR && npx sls deploy --conceal \ --STRIPE_DEV_CANCEL ${{ secrets.STRIPE_DEV_CANCEL }} \ --STRIPE_DEV_ENDPOINT ${{ secrets.STRIPE_DEV_ENDPOINT }} \ --STRIPE_PROD_CANCEL ${{ secrets.STRIPE_PROD_CANCEL }} \ @@ -73,7 +73,7 @@ jobs: run: | cd services for DIR in *; do - (cd $DIR && sls deploy --stage prod --conceal \ + (cd $DIR && npx sls deploy --stage prod --conceal \ --STRIPE_DEV_CANCEL ${{ secrets.STRIPE_DEV_CANCEL }} \ --STRIPE_DEV_ENDPOINT ${{ secrets.STRIPE_DEV_ENDPOINT }} \ --STRIPE_PROD_CANCEL ${{ secrets.STRIPE_PROD_CANCEL }} \