Chore: update release process #58
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: validate | |
| on: | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: {} | |
| jobs: | |
| main: | |
| permissions: | |
| contents: read # to fetch code (actions/checkout) | |
| # ignore all-contributors PRs | |
| if: ${{ !contains(github.head_ref, 'all-contributors') }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node: [20, 22, 24] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⬇️ Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: ⎔ Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: 📥 Download deps | |
| uses: bahmutov/npm-install@v1 | |
| with: | |
| useLockFile: false | |
| - name: 🧹 Run lint script | |
| run: npm run lint | |
| - name: 🧪 Run tests with coverage | |
| run: npm test -- --coverage | |
| - name: 🧼 Run clean script | |
| run: npm run clean | |
| - name: 🏗 Run build script | |
| run: npm run build | |
| - name: ⬆️ Upload coverage report | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| fail_ci_if_error: true | |
| flags: node-${{ matrix.node }} | |
| token: ${{ secrets.CODECOV_TOKEN }} |