chore(deps): update pnpm/action-setup digest to b906aff #442
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
| # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
| name: Build Website | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 | |
| - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 | |
| with: | |
| version: 10 | |
| - uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6 | |
| with: | |
| node-version: '24.10' | |
| cache: pnpm | |
| cache-dependency-path: pnpm-lock.yaml | |
| - uses: actions/cache@v4 | |
| id: playwright-cache | |
| with: | |
| path: ~/.cache/ms-playwright | |
| key: ${{ runner.os }}-playwright-${{ hashFiles('pnpm-lock.yaml') }} | |
| - name: Install dependencies | |
| run: pnpm i | |
| - name: Lint with prettier | |
| run: pnpm run lint | |
| - name: Install playwright browser | |
| run: pnpm exec playwright install --only-shell | |
| - name: Build website | |
| run: pnpm run build | |
| - uses: aws-actions/configure-aws-credentials@61815dcd50bd041e203e49132bacad1fd04d2708 # v5 | |
| if: github.ref == 'refs/heads/main' | |
| with: | |
| aws-region: us-east-1 | |
| role-to-assume: arn:aws:iam::855808870739:role/github-actions-jetski.sh | |
| - name: Deploy assets | |
| if: github.ref == 'refs/heads/main' | |
| run: >- | |
| aws s3 sync dist/_astro s3://hyprmcp.com/_astro | |
| --cache-control "max-age=604800, public" | |
| --acl=public-read | |
| - name: Deploy short lived content | |
| if: github.ref == 'refs/heads/main' | |
| run: >- | |
| aws s3 sync dist s3://hyprmcp.com/ | |
| --cache-control "max-age=60, public" | |
| --acl=public-read | |
| - name: Invalidate cache | |
| if: github.ref == 'refs/heads/main' | |
| run: >- | |
| aws cloudfront create-invalidation | |
| --distribution-id EH7B7Z7YWWXSF | |
| --invalidation-batch "Paths={Quantity='1' ,Items=['/*']},CallerReference=WEBSITE_$GITHUB_RUN_ID" |