Skip to content

fix(workflows): set node version to fix build error (#92) #91

fix(workflows): set node version to fix build error (#92)

fix(workflows): set node version to fix build error (#92) #91

Workflow file for this run

name: Publish stories if changed
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 16
- name: Install and Build 🔧
run: |
yarn install
yarn build-storybook
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: storybook-static