build(deps): bump the github-actions group with 2 updates (#436) #806
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: | |
| branches: [main] | |
| paths-ignore: | |
| - 'README.md' | |
| - 'docs/**' | |
| pull_request: | |
| branches: [main] | |
| paths-ignore: | |
| - 'README.md' | |
| - 'docs/**' | |
| permissions: | |
| pull-requests: write | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: package.json | |
| - run: npm ci | |
| - run: npm run build | |
| - run: npm run format-check | |
| - run: npm run lint | |
| - run: npm run test | |
| - uses: actions/upload-artifact@v5 | |
| with: | |
| name: dist | |
| path: dist | |
| - uses: actions/upload-artifact@v5 | |
| with: | |
| name: action.yml | |
| path: action.yml | |
| test: | |
| if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository | |
| needs: [build] | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| target: [built, committed] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - if: matrix.target == 'built' || github.event_name == 'pull_request' | |
| uses: actions/download-artifact@v6 | |
| with: | |
| name: dist | |
| path: dist | |
| - if: matrix.target == 'built' || github.event_name == 'pull_request' | |
| uses: actions/download-artifact@v6 | |
| with: | |
| name: action.yml | |
| path: . | |
| - name: Test repository dispatch | |
| uses: ./ | |
| with: | |
| event-type: tests | |
| client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}' | |
| - name: Test repository dispatch (default payload) | |
| uses: ./ | |
| with: | |
| event-type: tests | |
| package: | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| needs: [test] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/download-artifact@v6 | |
| with: | |
| name: dist | |
| path: dist | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| token: ${{ secrets.ACTIONS_BOT_TOKEN }} | |
| commit-message: Update distribution | |
| title: Update distribution | |
| body: | | |
| - Updates the distribution for changes on `main` | |
| Auto-generated by [create-pull-request][1] | |
| [1]: https://github.com/peter-evans/create-pull-request | |
| branch: update-distribution |