Fix npm publish workflow for trusted publishing #386
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: Lint # | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| NODE_VERSION: 20 | |
| jobs: | |
| linting: | |
| name: Linting | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install NodeJS | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| - name: Code Checkout | |
| uses: actions/checkout@v2 | |
| - name: Install Dependencies | |
| run: npm ci | |
| - name: Code Linting | |
| run: npm run lint | |
| - name: Run prettier | |
| run: npx prettier --debug-check . |