Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Add support for auto-generating completions for a CLI program #15

Add support for auto-generating completions for a CLI program

Add support for auto-generating completions for a CLI program #15

Workflow file for this run

name: Build
on:
workflow_dispatch:
pull_request:
branches: [main]
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dependencies
uses: ./.github/actions/setup
with:
cachixAuthToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- run: pnpm build
- name: Check source state
run: git add src && git diff-index --cached HEAD --exit-code src
- run: pnpm circular
- run: pnpm docgen
- name: Check docs state
run: git add docs && git diff-index --cached HEAD --exit-code docs
- name: Create Release Pull Request or Publish
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
id: changesets
uses: changesets/action@v1
with:
version: pnpm update-version
publish: pnpm changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}