diff --git a/.github/workflows/main.yml b/.github/workflows/ci.yaml similarity index 88% rename from .github/workflows/main.yml rename to .github/workflows/ci.yaml index 44c4151..7a17d24 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/ci.yaml @@ -4,7 +4,7 @@ on: pull_request: push: branches: - - 'master' + - 'main' jobs: build: @@ -15,13 +15,16 @@ jobs: uses: actions/checkout@v2 - name: Set up Node.js - uses: actions/setup-node@master + uses: actions/setup-node@v6 with: node-version: 18.4.0 - name: Install dependencies run: npm install && npm run install-peers + - name: Lint + run: npm run lint + - name: Run tests run: npm test @@ -34,7 +37,7 @@ jobs: run: npm run build - name: Copy type definition to docs - if: github.ref_name == 'master' + if: github.ref_name == 'main' run: cp ./build/index.d.ts ./docs/ - name: Perform CodeQL analysis @@ -42,7 +45,7 @@ jobs: - name: Publish github pages docs uses: peaceiris/actions-gh-pages@v3 - if: github.ref_name == 'master' + if: github.ref_name == 'main' with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./docs diff --git a/README.md b/README.md index b20a169..c0a384d 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,9 @@ A terminal [React](https://github.com/facebook/react) component with support for Check out the **[Demo](https://jonmbake.github.io/react-terminal-ui/demo/)** :heart_eyes: - + - + ## Installation diff --git a/demo/index.html b/demo/index.html index ac670f2..dbf4e2e 100644 --- a/demo/index.html +++ b/demo/index.html @@ -10,8 +10,8 @@
- - + +