Skip to content
on:
push:
branches:
- main
jobs:
staging:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 16.3
steps:
- uses: actions/checkout@v2
- name: Use node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install yarn
run: npm install -g yarn
- name: Check cache
uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Deploy
run: |
yarn
yarn deploy-storybook --ci
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}