fix: trigger release to update package README on npm #11
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
| on: | |
| push: | |
| branches: | |
| - main | |
| - beta | |
| - +([0-9])?(.{+([0-9]),x}).x | |
| name: Release | |
| jobs: | |
| run-tests: | |
| name: Run Tests | |
| runs-on: ubuntu-latest | |
| env: | |
| FOUNDRY_PROFILE: ci | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 22.x | |
| - uses: foundry-rs/foundry-toolchain@v1 | |
| - run: sudo apt-get install -y lcov | |
| - run: npm ci --no-fund --no-audit | |
| - run: npm run test:coverage | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-coverage | |
| path: ./coverage/lcov.info | |
| test-build: | |
| name: Test Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 22.x | |
| - uses: foundry-rs/foundry-toolchain@v1 | |
| - run: npm ci --no-fund --no-audit --ignore-scripts | |
| - run: npm run build | |
| coverage: | |
| name: Test Coverage | |
| needs: [run-tests] | |
| runs-on: ubuntu-latest | |
| if: always() | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Download coverage | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: test-coverage | |
| - uses: codecov/codecov-action@v4 | |
| continue-on-error: true | |
| with: | |
| fail_ci_if_error: false | |
| verbose: true | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| linters: | |
| name: Linters | |
| uses: ./.github/workflows/linters.yml | |
| release: | |
| name: Publish Release | |
| needs: [run-tests, test-build, linters] | |
| uses: ./.github/workflows/publish.yml | |
| secrets: inherit | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write |