Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
feat(ci): use node 21
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidRouyer committed Nov 11, 2023
1 parent 0c07df3 commit a1b5e23
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js 20.x
- name: Use Node.js 21.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "yarn"
node-version: 21.x
cache: 'yarn'

- name: Install dependencies
run: yarn
Expand All @@ -29,7 +29,7 @@ jobs:
run: |
yarn db:push
env:
DATABASE_URL: "${{ secrets.DATABASE_URL }}"
DATABASE_URL: '${{ secrets.DATABASE_URL }}'

- name: Install Vercel CLI
run: npm install --global vercel@latest
Expand All @@ -40,10 +40,10 @@ jobs:
- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
env:
AUTH_GITHUB_ID: "${{ secrets.AUTH_GITHUB_ID }}"
AUTH_GITHUB_SECRET: "${{ secrets.AUTH_GITHUB_SECRET }}"
AUTH_SECRET: "${{ secrets.AUTH_SECRET }}"
DATABASE_URL: "${{ secrets.DATABASE_URL }}"
AUTH_GITHUB_ID: '${{ secrets.AUTH_GITHUB_ID }}'
AUTH_GITHUB_SECRET: '${{ secrets.AUTH_GITHUB_SECRET }}'
AUTH_SECRET: '${{ secrets.AUTH_SECRET }}'
DATABASE_URL: '${{ secrets.DATABASE_URL }}'

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
8 changes: 5 additions & 3 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js 21.x
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 21.x
cache: 'yarn'

- name: Install dependencies
Expand Down

0 comments on commit a1b5e23

Please sign in to comment.