Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hristianivanov committed Aug 21, 2024
2 parents fafc8ed + adad300 commit 09aec2f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 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,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

0 comments on commit 09aec2f

Please sign in to comment.