test: exclude noop.ts from coverage report, add ponder regression tests #17
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: π Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| check: | |
| name: β Check version | |
| outputs: | |
| changed: ${{ steps.check.outputs.changed }} | |
| version: ${{ steps.check.outputs.version }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: β¬οΈ Checkout code | |
| uses: actions/checkout@v4 | |
| - id: check | |
| uses: EndBug/version-check@v2 | |
| with: | |
| diff-search: true | |
| format: | |
| name: π Format | |
| uses: ./.github/workflows/format.yml | |
| lint: | |
| name: π¬ Lint | |
| uses: ./.github/workflows/lint.yml | |
| test: | |
| name: π§ͺ Test | |
| uses: ./.github/workflows/test.yml | |
| secrets: inherit | |
| release: | |
| name: π Release | |
| permissions: | |
| id-token: write | |
| contents: write | |
| runs-on: ubuntu-latest | |
| needs: [check, format, lint, test] | |
| if: needs.check.outputs.changed == 'true' | |
| steps: | |
| - name: β¬οΈ Checkout code | |
| uses: actions/checkout@v4 | |
| - name: π¦ Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: latest | |
| - name: β Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: 'pnpm' | |
| node-version: 'node' | |
| registry-url: 'https://registry.npmjs.org' | |
| scope: '@echecs' | |
| - name: π₯ Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Release to NPM | |
| run: pnpm publish --access public --provenance | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: π·οΈ Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: v${{ needs.check.outputs.version }} | |
| generate_release_notes: true |