Skip to content

refactor: renamed framework dir to cli #38

refactor: renamed framework dir to cli

refactor: renamed framework dir to cli #38

Workflow file for this run

name: CLI Release
on:
push:
branches: [main]
paths:
- ".github/workflows/release.yml"
- "cli/**"
- "scaffold/**"
- "package.json"
- "pnpm-lock.yaml"
- "tsup.config.ts"
- "vitest.config.ts"
- "tsconfig.cli.json"
- "release.config.cjs"
workflow_dispatch: {}
permissions:
contents: write
issues: write
pull-requests: write
concurrency:
group: cli-release
cancel-in-progress: false
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Generate token
id: app-token
uses: actions/create-github-app-token@v3
with:
client-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
persist-credentials: true
token: ${{ steps.app-token.outputs.token }}
- name: Setup pnpm
uses: pnpm/action-setup@v6
with:
version: latest
- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run ESLint
run: pnpm exec eslint cli tsup.config.ts vitest.config.ts release.config.cjs
- name: Run Prettier check
run: pnpm exec prettier --check cli tsup.config.ts vitest.config.ts release.config.cjs package.json
- name: Run TypeScript check
run: pnpm exec tsc --noEmit -p tsconfig.cli.json
- name: Run tests
run: pnpm test
- name: Build
run: pnpm cli:build
- name: Release
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release