Skip to content

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
InkoHX committed Apr 22, 2024
1 parent 315af8e commit 7bfe731
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
pull_request:

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest

permissions:
contents: read
deployments: write
statuses: write
pull-requests: write

steps:
- uses: actions/checkout@v4

- uses: moonrepo/setup-toolchain@v0
with:
auto-install: true
proto-version: 0.34.4

- run: pnpm install
- run: pnpm format:check
- run: pnpm lint

- uses: nexterias/actions-vercel@v1
with:
token: ${{ secrets.VERCEL_TOKEN }}
org-id: ${{ secrets.VERCEL_ORG_ID }}
project-id: ${{ secrets.VERCEL_PROJECT_ID }}
production: ${{ github.ref == 'refs/heads/main' }}
prebuilt: true

0 comments on commit 7bfe731

Please sign in to comment.