Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork220
Update README and Documentation for New Experimental Hooks#2520
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 and Semantic Release | |
| concurrency: | |
| group:release-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress:true | |
| on: | |
| push: | |
| branches: | |
| -main | |
| -alpha | |
| -next | |
| jobs: | |
| test: | |
| name:Build (production) | |
| runs-on:ubuntu-latest | |
| if:${{ github.repository == 'imbhargav5/rooks' && contains('refs/heads/main,refs/heads/alpha,refs/heads/next',github.ref)}} | |
| steps: | |
| -name:"Check if user has write access" | |
| uses:"lannonbr/repo-permission-check-action@2.0.0" | |
| with: | |
| permission:"write" | |
| env: | |
| GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }} | |
| -name:⬇️ Checkout repo | |
| uses:actions/checkout@v4 | |
| -name:⎔ CI Setup | |
| uses:./.github/actions/ci-setup | |
| -name:run all checks and get coverage | |
| run:pnpm run all-checks | |
| -name:Upload coverage to Codecov | |
| uses:codecov/codecov-action@v2 | |
| with: | |
| directory:packages/rooks/src/coverage | |
| release: | |
| name:Publish To NPM | |
| env: | |
| ALGOLIA_API_KEY:${{ secrets.ALGOLIA_API_KEY }} | |
| ALGOLIA_APP_ID:${{secrets.ALGOLIA_APP_ID}} | |
| needs:test | |
| runs-on:ubuntu-latest | |
| if:${{ github.repository == 'imbhargav5/rooks' && | |
| contains('refs/heads/main,refs/heads/alpha,refs/heads/next',github.ref) && github.event_name == 'push' }} | |
| steps: | |
| -name:⬇️ Checkout repo | |
| uses:actions/checkout@v4 | |
| -name:⎔ CI Setup | |
| uses:./.github/actions/ci-setup | |
| -name:🏗 Run build script | |
| run:pnpm turbo prepare-publish | |
| -name:Create Release Pull Request or Publish to npm | |
| id:changesets | |
| uses:changesets/action@v1 | |
| with: | |
| publish:pnpm run release | |
| version:pnpm run version | |
| env: | |
| GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN:${{ secrets.NPM_TOKEN }} |