Skip to content

Merge pull request #140 from birotaio/dependabot/npm_and_yarn/depende… #270

Merge pull request #140 from birotaio/dependabot/npm_and_yarn/depende…

Merge pull request #140 from birotaio/dependabot/npm_and_yarn/depende… #270

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- master
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Node setup 📦
uses: actions/setup-node@v3
with:
node-version: 18.17.1
- name: Authenticate with yarn 🔑
run: echo "npmAuthToken:" "${{ secrets.NPM_TOKEN }}" > ~/.yarnrc.yml
- name: Enable Corepack
run: corepack enable
- name: Prepare Yarn
run: corepack prepare [email protected] --activate
- name: Install and Build 🔧
run: |
yarn install --immutable
yarn build:sb
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: storybook-static # The folder the action should deploy.