feat: deprecate module hook and use nitro hooks #26
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: ci | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - run: npm i -g --force corepack && corepack enable | |
| - name: Install dependencies | |
| run: npx nypm@latest i | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Playground prepare | |
| run: pnpm dev:prepare | |
| - name: Test | |
| run: pnpm test | |
| - name: Typecheck | |
| run: pnpm typecheck | |
| - name: Build | |
| run: pnpm prepack | |
| - name: Publish | |
| # add `--compact` option after releasing on npm | |
| run: pnpx pkg-pr-new publish --no-template --pnpm |