Skip to content

Commit

Permalink
Update node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hristianivanov authored Aug 21, 2024
1 parent aeb7138 commit adad300
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -11,9 +11,7 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]
Expand All @@ -27,6 +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

0 comments on commit adad300

Please sign in to comment.