feat(Vite): Adjust project to build with vite #23
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: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN_SEMANTIC_RELEASE || secrets.GITHUB_TOKEN || secrets.GH_TOKEN }} | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Setup project | |
| uses: ./.github/actions/setup | |
| with: | |
| GH_TOKEN: ${{ env.GH_TOKEN }} | |
| - name: Lint files | |
| run: yarn lint | |
| - name: Typecheck files | |
| run: yarn typecheck | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Setup project | |
| uses: ./.github/actions/setup | |
| with: | |
| GH_TOKEN: ${{ env.GH_TOKEN }} | |
| - name: Run unit tests | |
| run: yarn test | |
| build-release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Setup project | |
| uses: ./.github/actions/setup | |
| with: | |
| GH_TOKEN: ${{ env.GH_TOKEN }} | |
| - name: Build package | |
| run: yarn build | |
| - name: Create release | |
| run: npx semantic-release | |
| env: | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| GH_TOKEN: ${{ env.GH_TOKEN }} |