chore(deps): update node.js to v24.13.0 #5716
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 | |
| on: push | |
| jobs: | |
| release: | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Get Node.js version | |
| id: nodejs-version | |
| run: version="$(cat .tool-versions | grep '^nodejs' | cut -d' ' -f2)" && echo "result=$version" >> "$GITHUB_OUTPUT" | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ steps.nodejs-version.outputs.result }} | |
| cache: "npm" | |
| - run: npm ci | |
| - run: npm run lint | |
| - run: npm run test | |
| - run: npm run build | |
| - name: verify docs are up-to-date | |
| run: | | |
| diff <(npx tsx utils/generate-docs.mts README.md) README.md || { cat <<EOF | |
| The documentation is not up-to-date. Run the following command to update: | |
| printf "%s\n" "\$(npx tsx utils/generate-docs.mts README.md)" > README.md | |
| EOF | |
| exit 1 | |
| } | |
| - name: conditional release | |
| if: ${{ github.ref == 'refs/heads/dev' }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: npx [email protected] |