Skip to content

fix: update set up node version to 18 #5

fix: update set up node version to 18

fix: update set up node version to 18 #5

Workflow file for this run

name: Deploy
env:
GOOLE_ADSENSE_TXT: ${{ secrets.GOOLE_ADSENSE_TXT }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install Yarn
run: npm install -g yarn
- name: Install dependencies
run: yarn install
- name: Create Ads.txt
run: echo "$GOOLE_ADSENSE_TXT" > Ads.txt
# https://vercel.com/guides/how-can-i-use-github-actions-with-vercel
- name: Install Vercel CLI
run: npm install -g vercel
- name: Deploy to Vercel
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project
run: yarn build
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}