Skip to content

Commit

Permalink
fix: action for newsletter (#96)
Browse files Browse the repository at this point in the history
Signed-off-by: Mirko Mollik <mirkomollik@gmail.com>
  • Loading branch information
cre8 authored Oct 7, 2024
1 parent eb17c80 commit cab9c3e
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/newsletter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,21 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: 18

- name: Cache npm dependencies
uses: actions/cache@v4
with:
path: viewer/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm install
run: cd viewer && npm install

- name: Generate newsletter
run: node scripts/newsletter.mjs
run: cd viewer && node scripts/newsletter.mjs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EMAIL_ADDRESS: ${{ secrets.EMAIL_ADDRESS }}
Expand Down

0 comments on commit cab9c3e

Please sign in to comment.