diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 7ed241d..9ac4357 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,7 +1,7 @@ # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs -name: Node.js CI +name: Calculator CI/CD on: push: @@ -11,9 +11,7 @@ on: jobs: build: - runs-on: ubuntu-latest - strategy: matrix: node-version: [20.x] @@ -27,3 +25,10 @@ jobs: cache: 'npm' - run: npm ci - run: npm run build --if-present + + deploy: + runs-on: ubuntu-latest + needs: build # This ensures the deploy job runs only after the build job completes successfully + steps: + - name: Deploy to Vercel + run: curl -X POST https://api.vercel.com/v1/integrations/deploy/prj_Gqwn95PjUlgbcC9hQVZibCm1a29f/T1pk0DQp8v