CircleCI Commit

This commit is contained in:
circleci-app[bot]
2025-12-17 19:19:37 +00:00
committed by GitHub
parent 3ac32bc882
commit eccee7d80c

View File

@ -1,31 +1,36 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/reference/configuration-reference
version: 2.1
# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/guides/orchestrate/jobs-steps/#jobs-overview & https://circleci.com/docs/reference/configuration-reference/#jobs
jobs:
say-hello:
# Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub.
# See: https://circleci.com/docs/guides/execution-managed/executor-intro/ & https://circleci.com/docs/reference/configuration-reference/#executor-job
deploy:
docker:
# Specify the version you desire here
# See: https://circleci.com/developer/images/image/cimg/base
- image: cimg/base:current
# Add steps to the job
# See: https://circleci.com/docs/guides/orchestrate/jobs-steps/#steps-overview & https://circleci.com/docs/reference/configuration-reference/#steps
- image: cimg/node:24.12.0
steps:
# Checkout the code as the first step.
- checkout
- run:
name: "Say hello"
command: "echo Hello, World!"
name: Install pl-api deps
working_directory: packages/pl-api
command: pnpm install
- run:
name: Build pl-api
working_directory: packages/pl-api
command: pnpm run build
- run:
name: Install pl-fe deps
working_directory: packages/pl-fe
command: pnpm install
- run:
name: Build pl-fe
working_directory: packages/pl-fe
command: pnpm run build
- run:
name: Install Vercel CLI
command: sudo npm install -g vercel
- run:
working_directory: packages/pl-fe
name: Deploy to Vercel
command: vercel deploy dist --token $VERCEL_TOKEN --prod=false --confirm
# Orchestrate jobs using workflows
# See: https://circleci.com/docs/guides/orchestrate/workflows/ & https://circleci.com/docs/reference/configuration-reference/#workflows
workflows:
say-hello-workflow: # This is the name of the workflow, feel free to change it to better match your workflow.
# Inside the workflow, you define the jobs you want to run.
deploy_on_pr:
jobs:
- say-hello
- deploy