Merge pull request #140 from birotaio/dependabot/npm_and_yarn/depende… #270
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |