Skip to content

Merge pull request #171 from eliperkins/dependabot/npm_and_yarn/types… #122

Merge pull request #171 from eliperkins/dependabot/npm_and_yarn/types…

Merge pull request #171 from eliperkins/dependabot/npm_and_yarn/types… #122

Workflow file for this run

name: Deploy
on:
push:
branches: [main]
permissions:
actions: read
checks: read
contents: read
deployments: read
issues: read
pull-requests: read
statuses: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
id: setup-node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "yarn"
- name: Install dependencies
run: yarn install --immutable --immutable-cache
- uses: actions/cache@v4
with:
path: ${{ github.workspace }}/.next/cache
key: v1-${{ runner.os }}-${{ steps.setup-node.outputs.node-version }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx', '**/*.md', '**/*.css') }}
restore-keys: |
v1-${{ runner.os }}-${{ steps.setup-node.outputs.node-version }}-nextjs-${{ hashFiles('**/yarn.lock') }}-
- name: Deploy
run: yarn deploy
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}