Skip to content

fix: forgot install command in ci #10

fix: forgot install command in ci

fix: forgot install command in ci #10

Workflow file for this run

name: Deploy
on:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
defaults:
run:
shell: bash
env:
ACTIONS_RUNNER_DEBUG: true
jobs:
deploy:
timeout-minutes: 3
runs-on: ['ubuntu-latest']
steps:
- name: '🔑 Checkout'
uses: actions/checkout@v4
- name: 'Get pnpm Version'
id: pnpm-version
run: |
PNPM_VERSION=$(cat package.json | jq --raw-output '.packageManager' | awk -F'@' '{print $2}')
echo "PNPM_VERSION=$PNPM_VERSION" >> $GITHUB_OUTPUT
- name: '🍂 Setup pnpm'
uses: pnpm/action-setup@v4
with:
version: ${{ steps.pnpm-version.outputs.PNPM_VERSION }}
- name: '🐢 Setup Node.js'
uses: actions/setup-node@v3
with:
cache: 'pnpm'
node-version: 'lts/*'
- name: '📦 Install Dependencies'
run: pnpm install
- name: '🧹 Lint & Format'
run: pnpm dlx @biomejs/biome check . --reporter='github'
- name: '🧪 Typecheck'
run: pnpm typecheck
- name: '🔧 Build'
run: pnpm build
- name: '🔸 Cloudflare Workers - Deploy 🚀'
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: |
pnpm dlx wrangler@latest deploy \
--env='production' \
--config='wrangler.toml'