1.4.5 #39
Workflow file for this run
  
    
      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 & Publish | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - 'v*' | |
| pull_request: | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.10.0 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'pnpm' | |
| - name: Install Dependencies | |
| run: pnpm install | |
| - name: Build Package | |
| run: pnpm run build | |
| - name: Run Tests with Coverage | |
| run: pnpm run test:coverage | |
| env: | |
| VITE_FIGMA_TOKEN: ${{ secrets.VITE_FIGMA_TOKEN }} | |
| VITE_FIGMA_FILE_KEY: ${{ secrets.VITE_FIGMA_FILE_KEY }} | |
| - name: Upload Coverage Report (GitHub Artifact) | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report | |
| path: coverage/ | |
| - name: Upload to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./coverage/lcov.info | |
| flags: unittests | |
| name: codecov-coverage | |
| fail_ci_if_error: true | |
| publish: | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| registry-url: 'https://registry.npmjs.org/' | |
| - uses: pnpm/action-setup@v3 | |
| with: | |
| version: 8 | |
| - run: pnpm install | |
| - run: pnpm ls vite-tsconfig-paths | |
| - run: cat vite.config.ts | |
| - run: ls -lR src | |
| - run: cat tsconfig.json | |
| - run: pnpm run build | |
| - run: pnpm publish --access public --no-git-checks | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |