Bump @eslint/js from 9.39.2 to 10.0.1 #264
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: Build | |
| on: | |
| push: | |
| paths-ignore: | |
| - dist | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| - name: Get short SHA | |
| id: short_github_sha | |
| run: | | |
| id=$(echo ${{ github.sha }} | cut -c 1-7) | |
| echo "id=$id" >> $GITHUB_OUTPUT | |
| - name: Installing dependencies | |
| run: yarn | |
| - name: Testing | |
| run: npm run test | |
| - name: Building | |
| run: npm run package | |
| - name: Git config | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| - name: Git commit | |
| id: commit | |
| continue-on-error: true | |
| run: | | |
| git add dist | |
| git commit -m "build ${{ steps.short_github_sha.outputs.id }}" | |
| - name: Push | |
| if: steps.commit.outcome != 'failure' | |
| run: git push |