Skip to content

Merge pull request #23 from mebtte/dependabot/npm_and_yarn/webpack-5.… #20

Merge pull request #23 from mebtte/dependabot/npm_and_yarn/webpack-5.…

Merge pull request #23 from mebtte/dependabot/npm_and_yarn/webpack-5.… #20

Workflow file for this run

on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/setup-node@main
with:
node-version: lts/*
- name: install dependencies
run: npm ci
- name: build react-lrc
run: npm run build
- name: build storybook and deploy
run: |
npm run build-storybook
cd storybook-static
git init
git config --local user.name mebtte
git config --local user.email i@mebtte.com
git remote add origin https://${{secrets.ACCESS_TOKEN}}@github.com/mebtte/react-lrc.git
git switch -c gh-pages
git add -A
git commit -m "auto deploy"
git push -f origin gh-pages