Repository navigation
ci: enable OIDC trusted publishing (strip setup-node empty _authToken) #5
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: commitlint | |
| # Lint every commit in a PR's range against Conventional Commits, so | |
| # semantic-release computes the right version bump after a merge-commit merge. | |
| on: | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| commitlint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - run: npm ci | |
| - name: Lint PR commits | |
| run: > | |
| npx commitlint | |
| --from ${{ github.event.pull_request.base.sha }} | |
| --to ${{ github.event.pull_request.head.sha }} | |
| --verbose |