Update Contributors List in Readme (#1717) #2386
This file contains 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@v3 | |
- name: ⎔ CI Setup | |
uses: ./.github/actions/ci-setup | |
- name: run all checks and get coverage | |
run: yarn 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@v3 | |
with: | |
# To run comparison we need more than the latest commit. Keep the fetch-depth relatively | |
# high or set it to zero to get all commits from the git repo. | |
# @link https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches | |
fetch-depth: 0 | |
- name: ⎔ CI Setup | |
uses: ./.github/actions/ci-setup | |
- name: 🏗 Run build script | |
run: yarn run build | |
- name: Create Release Pull Request or Publish to npm | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
publish: yarn run release | |
version: yarn run version | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |