This repository was archived by the owner on May 15, 2026. It is now read-only.
feat: Finalized CLI approach #134
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: general | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: pnpm | |
| node-version-file: package.json | |
| - name: Install Dependencies | |
| run: pnpm ci:install | |
| - name: Build Packages | |
| run: pnpm build | |
| - name: Test Packages | |
| run: pnpm test | |
| - name: Upload Coverage | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| slug: datisthq/dplib | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| release: | |
| if: github.event_name == 'push' | |
| runs-on: ubuntu-latest | |
| needs: [test] | |
| permissions: | |
| contents: write | |
| id-token: write | |
| issues: read | |
| pull-requests: write | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: pnpm | |
| node-version-file: package.json | |
| - name: Install Dependencies | |
| run: pnpm ci:install | |
| - name: Build Packages | |
| run: pnpm build | |
| - name: Create Release Pull Request or Publish to npm | |
| id: changesets | |
| uses: changesets/action@v1 | |
| with: | |
| publish: pnpm ci:publish | |
| commit: "chore: update versions" | |
| title: "chore: update versions" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |