Skip to content

Commit

Permalink
Update deployment action
Browse files Browse the repository at this point in the history
  • Loading branch information
eliperkins committed Aug 26, 2024
1 parent 906ac1f commit 4aca0df
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Use Node.js
id: setup-node
uses: actions/setup-node@v4
with:
node-version: "22"
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 }}-${{ outputs.setup-node.node-version }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx', '**/*.md', '**/*.css') }}
restore-keys: |
v1-${{ runner.os }}-${{ outputs.setup-node.node-version }}-nextjs-${{ hashFiles('**/yarn.lock') }}-
- name: Deploy
run: yarn deploy
env:
Expand Down

0 comments on commit 4aca0df

Please sign in to comment.