chore: pin actions to commit sha #27
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] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.GH_ADMIN_TOKEN }} | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 | |
| with: | |
| version: 11.5.2 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: 'pnpm' | |
| - name: Set up Git | |
| run: | | |
| git config --local user.name "Artem Zakharchenko" | |
| git config --local user.email "kettanaito@gmail.com" | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build | |
| run: pnpm build | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Tests | |
| run: pnpm test | |
| - name: Release | |
| if: github.ref == 'refs/heads/main' | |
| run: pnpm release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }} |