Skip to content

Bump Node to v20

Bump Node to v20 #389

name: Email Templates Deploy
on:
push:
branches:
- master
jobs:
email-templates-deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: mailmason
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v2
with:
node-version: '18'
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7 # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Install Ruby deps
run: |
gem install premailer
gem install nokogiri
- name: Install & build
run: |
yarn
yarn build
- name: Deploy Dev
run: yarn force-deploy
env:
POSTMARK_SERVER_TOKEN: ${{secrets.POSTMARK_DEV_SERVER_TOKEN}}
- name: Deploy Prod
run: yarn force-deploy
env:
POSTMARK_SERVER_TOKEN: ${{secrets.POSTMARK_PROD_SERVER_TOKEN}}