Skip to content

Merge pull request #56 from SudoLand/dependabot/npm_and_yarn/typescri… #8

Merge pull request #56 from SudoLand/dependabot/npm_and_yarn/typescri…

Merge pull request #56 from SudoLand/dependabot/npm_and_yarn/typescri… #8

name: Deploy with GitHub Pages
on:
workflow_dispatch:
push:
branches:
- main
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 20
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
architecture: ${{ matrix.architecture }}
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install Dependencies
run: |
yarn
- name: Lint
run: |
yarn lint
- name: Build Storybook
run: |
yarn build-storybook
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: storybook-static
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3