Skip to content

Instantly share code, notes, and snippets.

@jmaicaaan
Created January 14, 2020 18:16
Show Gist options
  • Save jmaicaaan/796bbc5fc860a76b91b73f3ceb68c687 to your computer and use it in GitHub Desktop.
Save jmaicaaan/796bbc5fc860a76b91b73f3ceb68c687 to your computer and use it in GitHub Desktop.
[DEMO] ZEIT Now Configuration for Github Action
name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [8.x, 10.x, 12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Deploy to ZEIT Now
run: |
npm ci
npm run build --if-present
npm run deploy
env:
CI: true
ZEIT_TOKEN: ${{ secrets.ZEIT_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment