Skip to content

Node.js CI

Node.js CI #22

Workflow file for this run

name: Node.js CI
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
# utc
- cron: '0 23 * * *'
jobs:
build:
runs-on: ubuntu-latest
environment: deploy
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn
- name: Install dependencies
run: yarn --frozen-lockfile --prefer-offline
- name: Run tests
run: yarn test
- name: Deploy
env:
NODE_ENV: ${{ vars.NODE_ENV }}
GA4_PROPERTY_ID: ${{ secrets.GA4_PROPERTY_ID }}
CLIENT_EMAIL: ${{ secrets.CLIENT_EMAIL }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
run: ./deploy.sh