Skip to content

chore: gh workflow

chore: gh workflow #3

Workflow file for this run

# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: CI
on:
push:
branches:
- "main"
env:
NW_CDN_LIVE: ${{ vars.NW_CDN_LIVE }}
NW_CDN_PTR: ${{ vars.NW_CDN_PTR }}
jobs:
prepare:
name: Prepare the environment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies 📦
run: yarn install --frozen-lockfile
- name: Download nw-data 📥
run: yarn nw-cdn download
build:
runs-on: ubuntu-latest
needs: prepare
steps:
- uses: actions/checkout@v3
- name: Build Storybook
run: yarn storybook:build