Skip to content

Cb/newsletter automation #6

Cb/newsletter automation

Cb/newsletter automation #6

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: ['main']
pull_request:
branches: ['main']
# May want to go on a cron schedule rather than every update
# on:
# schedule:
# # * is a special character in YAML so you have to quote this string
# - cron: '0 0 1 1 *'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
cache: 'npm'

Check failure on line 26 in .github/workflows/newsletter.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/newsletter.yml (Line: 26, Col: 9): Unexpected value 'cache' .github/workflows/newsletter.yml (Line: 34, Col: 9): Unexpected value 'with'
- run: touch .env
- run: cat .env >> $GITHUB_ENV
- uses: actions/setup-node@v4
with:
node-version: 'latest'
- run: npm install
- run: npm run newsletter
with:
RESEND_API_KEY: '${{ secrets.RESEND_API_KEY }}'