fix: Minor fixes. #10
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: Storybook deploy | |
on: | |
push: | |
branches: [master] | |
concurrency: | |
group: pages | |
cancel-in-progress: true | |
jobs: | |
storybook-build: | |
name: Storybook build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Source code clone | |
uses: actions/checkout@v4 | |
- name: Node.js 20 (LTS) setup | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Corepack activation | |
run: corepack enable | |
- name: Yarn upgrade | |
run: yarn set version stable | |
- name: Dependencies installation | |
run: yarn install --immutable | |
- name: Coding standard check | |
run: yarn lint:prod | |
- name: Types integrity check | |
run: yarn check:types | |
- name: Source code build | |
run: yarn build:storybook | |
- name: Artifact upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: byloth-clay_vue-storybook | |
path: .storybook/dist | |
storybook-deploy: | |
name: GitHub Pages deploy | |
needs: storybook-build | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
steps: | |
- name: Artifact download | |
uses: actions/download-artifact@v4 | |
with: | |
name: byloth-clay_vue-storybook | |
- name: GitHub Pages setup | |
uses: actions/configure-pages@v4 | |
- name: Artifact upload | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: "." | |
- id: deployment | |
name: GitHub Pages deployment | |
uses: actions/deploy-pages@v4 | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} |